Skip to content

Commit

Permalink
Merged pull request #21 from dsisnero/patch-1.
Browse files Browse the repository at this point in the history
changed the create incoming and create specs to say that it "create a new
  • Loading branch information
andreasronge committed Apr 27, 2011
2 parents 6ad9f01 + 877a153 commit 8158946
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 8158946

Please sign in to comment.