Created
November 20, 2013 00:46
-
-
Save Fire-Dragon-DoL/7555467 to your computer and use it in GitHub Desktop.
Testing controller destroy action without using change on :count
This file contains 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 "DELETE #destroy" do | |
dummy = FactoryGirl.create(:dummy) | |
delete :show, id: dummy.id | |
dummy.reload | |
dummy.persisted?.should be_false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment