Skip to content

Commit

Permalink
Fixed failing RSpec: actvie_record_style_relationship: has_n delete o…
Browse files Browse the repository at this point in the history
…n incoming rels can find incoming
  • Loading branch information
andreasronge committed May 4, 2011
1 parent dc33757 commit 83a91ca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/rails/active_record_style_relationships_spec.rb
Expand Up @@ -322,10 +322,11 @@ class ModelRelationship1 < Neo4j::Rails::Relationship
@movie_2.actors.should include(@actor_2)
end

it "can find incoming" do
rel = @movie_2.actors.find(@actor)
rel.character = 'me'
@movie_2.actors_rels.find(@actor).should == rel
it "can find and delete incoming" do
rel = @movie_2.actors_rels.find(@actor)
rel.should be_kind_of(ModelRelationship1)
rel.delete
@movie_2.actors_rels.find(@actor).should be_nil
end
end

Expand Down

0 comments on commit 83a91ca

Please sign in to comment.