Skip to content

Commit

Permalink
use already defined methods from the fixture class
Browse files Browse the repository at this point in the history
  • Loading branch information
tak1n committed May 24, 2015
1 parent a97f197 commit cadc8ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/ruby/core/method/shared/eql.rb
Expand Up @@ -55,10 +55,8 @@
end

it "returns false if comparing a method defined via define_method and def" do
MethodSpecs::Methods.send :define_method, :defined_foo, lambda {}

defn = @m.method(:foo)
defined = @m.method(:defined_foo)
defn = @m.method(:zero)
defined = @m.method(:zero_defined_method)

defn.send(@method, defined).should be_false
defined.send(@method, defn).should be_false
Expand Down

0 comments on commit cadc8ad

Please sign in to comment.