Forked from Fire-Dragon-DoL/dummies_controller_spec.rb
Last active
December 28, 2015 20:09
-
-
Save benmacleod/7555484 to your computer and use it in GitHub Desktop.
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
describe 'DELETE #destroy' do | |
let(:dummy) { mock('Dummy') } | |
it "should find the object with the given ID and destroy it" do | |
# set the expectations about the interactions | |
Dummy.should_receive(:find).with(99).and_return dummy | |
dummy.should_receive(:destroy) | |
delete :destroy, id: 99 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment