Skip to content

Commit

Permalink
Merge pull request #188 from gkop/dont-override-object-equal
Browse files Browse the repository at this point in the history
Remove method that overrides Object#equal? (cleanup)
  • Loading branch information
maxdemarzi committed Jul 31, 2014
2 parents 4b05f14 + b97180f commit 68cab52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions lib/neography/equal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ module Neography
# == This mixin is used for both nodes and relationships to decide if two entities are equal or not.
#
module Equal
def equal?(o)
eql?(o)
end

def eql?(o)
return false unless o.respond_to?(:neo_id)
o.neo_id == neo_id
Expand Down
6 changes: 0 additions & 6 deletions spec/integration/node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,6 @@
end

describe "equality" do
it "can tell two nodes are the same with equal?" do
new_node = Neography::Node.create
another_node = Neography::Node.load(new_node)
expect(new_node.equal?(another_node)).to be true
end

it "can tell two nodes are the same with eql?" do
new_node = Neography::Node.create
another_node = Neography::Node.load(new_node)
Expand Down

0 comments on commit 68cab52

Please sign in to comment.