mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove bad expectation in spec
This spec should not be checking where methods are defined, only that the method works as expected (returns a Lazy instance).
This commit is contained in:
parent
e94ac03eb0
commit
4a3972c261
Notes:
git
2019-09-04 03:31:23 +09:00
1 changed files with 0 additions and 1 deletions
|
@ -43,7 +43,6 @@ describe :enumerator_lazy_to_enum, shared: true do
|
|||
each_entry: [],
|
||||
each_cons: [2]
|
||||
}.each_pair do |method, args|
|
||||
@infinite.method(method).owner.should_not equal(Enumerator::Lazy)
|
||||
@infinite.send(method, *args).should be_an_instance_of(Enumerator::Lazy)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue