Thanks, Jon for the heads-up on spring.

Dante is used in stripe mock server gem. I have specs which uses it to test
payments related code. The command works if I comment out those specs but
that isn't the solution.

The problem is that I don't see this exception on 2.12, it only occurs on
2.14/2.99.

I'm unsure why the rspec runner doesn't pass those arguments in 2.12 but on
later versions (2.14/ 2.99).

Sent from phone, please ignore brevity.

On Mon, Aug 26, 2019, 7:42 PM Jon Rowe <[email protected]> wrote:

> Hi
>
> From that second exception it seems something else (dante?) is reading
> `ARGV`, RSpec cannot prevent other gems from reading its arguments. I would
> seek to remove the troublesome gems until RSpec runs.
>
> Note whilst you’re upgrading I would heavily consider removing spring. It
> will cause trouble with this sort of upgrade, make sure its not running
> inbetween changing gems.
>
> Cheers
> Jon Rowe
> ---------------------------
> [email protected]
> jonrowe.co.uk
>
> On 26 August 2019 at 13:59, Surya wrote:
>
> Sorry, this is the exception:
>
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/dante-0.2.0/lib/dante/runner.rb:212:in
> `parse_options': invalid option: --format (OptionParser::InvalidOption)
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/dante-0.2.0/lib/dante/runner.rb:50:in
> `execute'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/stripe-ruby-mock-2.5.0/lib/stripe_mock/api/server.rb:18:in
> `spawn_server'
> from /Users/surya/projects/railsApp/spec/stripe_spec_helper.rb:2:in `<top
> (required)>'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:247:in
> `require'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:247:in
> `block in require'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:232:in
> `load_dependency'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:247:in
> `require'
> from /Users/surya/projects/railsApp/spec/models/group_spec.rb:2:in `<top
> (required)>'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:241:in
> `load'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:241:in
> `block in load'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:232:in
> `load_dependency'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:241:in
> `load'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in
> `block in load_spec_files'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in
> `each'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in
> `load_spec_files'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:22:in
> `run'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:77:in
> `rescue in run'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:73:in
> `run'
> from 
> /Users/surya/.rvm/gems/ruby-2.2.5@rails4115/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in
> `block in autorun'
> Coverage report generated for RSpec to
> /Users/surya/projects/railsApp/coverage. 10134 / 57425 LOC (17.65%) covered.
> Coverage report generated for RSpec to
> /Users/surya/projects/railsApp/coverage/coverage.json. 10134 / 57425 LOC
> (17.65%) covered.
> Coverage report Rcov style generated for RSpec to
> /Users/surya/projects/railsApp/coverage/rcov
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "rspec" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rspec/CAHGOqz6a-v-3fdcoZCyJuVB2%3D8Q9V4rXmR94LCZ2%3DEBX%3DJBV5w%40mail.gmail.com
> <https://groups.google.com/d/msgid/rspec/CAHGOqz6a-v-3fdcoZCyJuVB2%3D8Q9V4rXmR94LCZ2%3DEBX%3DJBV5w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "rspec" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rspec/dejalu-217-9987eaad-ff04-4a35-8d45-14d108aeee5e%40jonrowe.co.uk
> <https://groups.google.com/d/msgid/rspec/dejalu-217-9987eaad-ff04-4a35-8d45-14d108aeee5e%40jonrowe.co.uk?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/CAHGOqz4LAwGtyRP-u0Z3Dj83%3DDdGenry2uK0YK%3D1GNnq6ZWS4g%40mail.gmail.com.

Reply via email to