Skip to content

Commit

Permalink
changed the create incoming and create specs to say that it "create a…
Browse files Browse the repository at this point in the history
… new node and save it" since it should be_persisted
  • Loading branch information
dsisnero committed Apr 27, 2011
1 parent 97c85f2 commit 877a153
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/rails/active_record_style_relationships_spec.rb
Expand Up @@ -83,11 +83,11 @@ class ModelRelationship1 < Neo4j::Rails::Relationship
@ret = @actor.acted_in_rels.create(:title => 'movie_4')
end

it "create a new node but does not save it" do
it "create a new node and save it" do
@actor.acted_in.size.should == 4
end

it "create a new node but does not save it" do
it "create a new node and save it" do
@actor.acted_in.find{|x| x.title == 'movie_4'}.should be_persisted
end

Expand Down Expand Up @@ -119,11 +119,11 @@ class ModelRelationship1 < Neo4j::Rails::Relationship
@ret = @actor.acted_in.create(:title => 'movie_4')
end

it "create a new node but does not save it" do
it "create a new node and save it" do
@actor.acted_in.size.should == 4
end

it "create a new node but does not save it" do
it "create a new node and save it" do
@actor.acted_in.find{|x| x.title == 'movie_4'}.should be_persisted
end

Expand All @@ -138,11 +138,11 @@ class ModelRelationship1 < Neo4j::Rails::Relationship
@ret = @movie_1.actors.create(:name => 'actor_x')
end

it "create a new node but does not save it" do
it "create a new node and save it" do
@movie_1.actors.size.should == 2
end

it "create a new node but does not save it" do
it "create a new node and save it" do
@movie_1.actors.find{|x| x.name == 'actor_x'}.should be_persisted
end

Expand Down

0 comments on commit 877a153

Please sign in to comment.