ruby-changes:57521
From: Jeremy <ko1@a...>
Date: Wed, 4 Sep 2019 03:31:10 +0900 (JST)
Subject: [ruby-changes:57521] 4a3972c261 (master): Remove bad expectation in spec
https://git.ruby-lang.org/ruby.git/commit/?id=4a3972c261 From 4a3972c2612c3e3695d7f67b096b2ef8cbb6649a Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Mon, 2 Sep 2019 13:20:44 -0700 Subject: 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). diff --git a/spec/ruby/core/enumerator/lazy/shared/to_enum.rb b/spec/ruby/core/enumerator/lazy/shared/to_enum.rb index d488c9b..0c91ea5 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/enumerator/lazy/shared/to_enum.rb#L43 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/