Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed the create incoming and create specs to say that it "create a new #21

Merged
merged 1 commit into from Apr 27, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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