Skip to content

Commit

Permalink
Fix for 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Mar 30, 2012
1 parent fa7711d commit e3cb9b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/functional/mongoid/nested_attributes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,7 @@
before(:all) do
Person.send(:undef_method, :addresses_attributes=)
Person.accepts_nested_attributes_for \
:addresses, reject_if: :all_blank, allow_destroy: true
:addresses, :reject_if => :all_blank, allow_destroy: true
end

after(:all) do
Expand All @@ -1851,7 +1851,7 @@

before do
person.addresses_attributes =
{ "3" => { last_name: "", _destroy: "0" } }
{ "3" => { :last_name => "", _destroy: "0" } }
end

it "does not add the document" do
Expand Down

0 comments on commit e3cb9b1

Please sign in to comment.