1
0
Fork 0
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:
Jeremy Evans 2019-09-02 13:20:44 -07:00
parent e94ac03eb0
commit 4a3972c261
Notes: git 2019-09-04 03:31:23 +09:00

View file

@ -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