Skip to content

Commit

Permalink
Spec #del.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvdijk committed Oct 1, 2012
1 parent bd65e78 commit 34762af
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/unit/relationship_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,21 @@ module Neography
end
end

describe "#del" do

before do
db.stub(:create_relationship) { relationship_hash }
end

subject(:relationship) { Relationship.create("type", from, to, props) }

it "deletes a node" do
db.should_receive(:delete_relationship).with("0")
relationship.del
end

end

describe "#other_node" do

before do
Expand Down

0 comments on commit 34762af

Please sign in to comment.