Skip to content

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Apr 18, 2011
1 parent 5e2db28 commit 9844d59
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions spec/functional/mongoid/relations/auto_save_spec.rb
Expand Up @@ -97,39 +97,37 @@
it "does not save the relation" do
account.should_not be_persisted
end

end
end

context "when the relation is a referenced in" do

before do
[ Ghost, Movie ].each(&:delete_all)
end

let(:ghost) do
Ghost.new(:name => "Slimer")
end

let(:movie) do
Movie.new(:title => "Ghostbusters")
end

context "when saving a new parent document" do

before do
ghost.movie = movie
ghost.save
end

it "saves the relation" do
movie.should be_persisted
end

end

context "when saving an existing parent document" do

before do
ghost.save
ghost.movie = movie
Expand All @@ -139,11 +137,8 @@
it "does not save the relation" do
movie.should_not be_persisted
end

end

end

end
end
end

0 comments on commit 9844d59

Please sign in to comment.