diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-09-02 13:20:44 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-09-03 11:30:49 -0700 |
commit | 4a3972c2612c3e3695d7f67b096b2ef8cbb6649a (patch) | |
tree | f3d9bcef5e11f007b0cceabd6502a27c6ea1c4e2 | |
parent | e94ac03eb0d07af3cbff20194acf479bf8851c39 (diff) | |
download | ruby-4a3972c2612c3e3695d7f67b096b2ef8cbb6649a.tar.gz |
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).
-rw-r--r-- | spec/ruby/core/enumerator/lazy/shared/to_enum.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/ruby/core/enumerator/lazy/shared/to_enum.rb b/spec/ruby/core/enumerator/lazy/shared/to_enum.rb index d488c9b263..0c91ea55b9 100644 --- a/spec/ruby/core/enumerator/lazy/shared/to_enum.rb +++ b/spec/ruby/core/enumerator/lazy/shared/to_enum.rb @@ -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 |