Skip to content

Instantly share code, notes, and snippets.

@dbussink
Created June 12, 2009 17:52
Show Gist options
  • Save dbussink/128796 to your computer and use it in GitHub Desktop.
Save dbussink/128796 to your computer and use it in GitHub Desktop.
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