Skip to content

Commit cadc8ad

Browse files
committedMay 24, 2015
use already defined methods from the fixture class
1 parent a97f197 commit cadc8ad

File tree

1 file changed

+2
-4
lines changed
  • spec/ruby/core/method/shared

1 file changed

+2
-4
lines changed
 

Diff for: ‎spec/ruby/core/method/shared/eql.rb

+2-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@
5555
end
5656

5757
it "returns false if comparing a method defined via define_method and def" do
58-
MethodSpecs::Methods.send :define_method, :defined_foo, lambda {}
59-
60-
defn = @m.method(:foo)
61-
defined = @m.method(:defined_foo)
58+
defn = @m.method(:zero)
59+
defined = @m.method(:zero_defined_method)
6260

6361
defn.send(@method, defined).should be_false
6462
defined.send(@method, defn).should be_false

0 commit comments

Comments
 (0)