summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-09-02 13:20:44 -0700
committerJeremy Evans <code@jeremyevans.net>2019-09-03 11:30:49 -0700
commit4a3972c2612c3e3695d7f67b096b2ef8cbb6649a (patch)
treef3d9bcef5e11f007b0cceabd6502a27c6ea1c4e2
parente94ac03eb0d07af3cbff20194acf479bf8851c39 (diff)
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).
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2421
-rw-r--r--spec/ruby/core/enumerator/lazy/shared/to_enum.rb1
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