-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration is out of scope #162
Comments
Can you confirm if this happens in an older version of RSpec to help isolate whether this is a new issue introduced by a changein RSpec? |
Hard to say, RSpec is already required, anyway while I`m using project with such Gemfile.lock: GEM It fails, while only capybara-screenshot is downgraded to 1.0.11(~> 1.0, <= 1.0.11) it`s just fine: PATH GEM |
I'm also having the same issue using RSpec 3.4.4, Cucumber 2.3.3 and Ruby 2.3.0 |
I've had the same problem, I tried with |
This bug can be replicated the following way:
What happens is that there is a bug in: Also there is a different behaviour for core classes over library or gem classes and/or modules under Object namespace. I'm using capybara with rspec expectations and If you like I can give you more details about it. |
For the time being my advise would be to try to remove |
The require statement was added in commit 29d6f1b to get access to |
Great 👍 |
Reproduction:
Actual result:
wrong number of arguments (0 for 1) (ArgumentError)
Note: wrong configuration method is used. Should be in RSpec scope, but it is read from Ruby context:
"/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/mkmf.rb:1856:in `configuration'"
"/.rvm/gems/ruby-2.2.4/gems/rspec-expectations-3.4.0/lib/rspec/expectations/configuration.rb:66:in `color?'"
"/.rvm/gems/ruby-2.2.4/gems/rspec-expectations-3.4.0/lib/rspec/expectations/fail_with.rb:8:in `differ'",
The text was updated successfully, but these errors were encountered: