-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Given the following failing example in failing_example.rb
require 'wrong/adapters/rspec'
describe "a block arg in a failing assertion" do
it "raises a NameError :(" do
assert { [].each {|v|} != [] }
end
endWhen I run rspec failing_example.rb
Then I get this error:
F
Failures:
1) a block arg in a failing assertion raises a NameError :(
Failure/Error: assert { [].each {|v|} != [] }
Expected [].each { |v| }.!=([]), but
(v) raises NameError: undefined local variable or method `v' for #<RSpec::Core::ExampleGroup::Nested_1:0x007f938a0d1ef0>
# ./failing_example.rb:5:in `block (2 levels) in <top (required)>'
The example should fail, that's not the problem. The problem is the failure message should indicate that the values were not equal, not a NameError on v
Metadata
Metadata
Assignees
Labels
No labels