remove acts_as_paranoid, use .trash! , .recover! and .with_deleted as needed

makes upgrading to rails 4 possible
This commit is contained in:
Sam
2013-05-07 14:39:01 +10:00
parent a71a15913c
commit e9fc272db7
21 changed files with 77 additions and 36 deletions

View File

@@ -29,7 +29,7 @@ describe InvitesController do
end
it "destroys the invite" do
Invite.any_instance.expects(:destroy)
Invite.any_instance.expects(:trash!)
delete :destroy, email: invite.email
end