Skip to content

Commit

Permalink
No need for .with on stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvdijk committed Oct 1, 2012
1 parent 7470332 commit 4bf316e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/unit/properties_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ module Neography
end

it "gets properties as accessor" do
@db.stub(:"set_node_properties").with(42, { "key" => "value" })
@db.stub(:"set_node_properties")
node.key = "value"
node.key.should == "value"
end

it "gets properties as array entry" do
@db.stub(:"set_node_properties").with(42, { "key" => "value" })
@db.stub(:"set_node_properties")
node["key"] = "value"
node["key"].should == "value"
end
Expand Down Expand Up @@ -84,13 +84,13 @@ module Neography
end

it "gets properties as accessor" do
@db.stub(:"set_relationship_properties").with(42, { "key" => "value" })
@db.stub(:"set_relationship_properties")
relationship.key = "value"
relationship.key.should == "value"
end

it "gets properties as array entry" do
@db.stub(:"set_relationship_properties").with(42, { "key" => "value" })
@db.stub(:"set_relationship_properties")
relationship["key"] = "value"
relationship["key"].should == "value"
end
Expand Down

0 comments on commit 4bf316e

Please sign in to comment.