Created
June 12, 2009 17:52
-
-
Save dbussink/128796 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should destroy a resource that is marked_for_destruction (FAILS)" do | |
person = Person.create | |
profile = Profile.create :person => person | |
p person.profiles | |
person.send(:child_associations).should_not be_empty | |
end | |
Changing the debug to p person.profiles.first makes it fail | |
it "should destroy a resource that is marked_for_destruction (FAILS)" do | |
person = Person.create | |
profile = Profile.create :person => person | |
p person.profiles.first | |
person.send(:child_associations).should_not be_empty | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment