Skip to content

Instantly share code, notes, and snippets.

@queso
Created January 6, 2010 19:11
Show Gist options
  • Save queso/270539 to your computer and use it in GitHub Desktop.
Save queso/270539 to your computer and use it in GitHub Desktop.
it "PUT #update should use a saving" do
saving = stub(:use! => true)
Saving.stubs(:find).returns(saving)
put :update, :id => 1
response.should redirect_to(:savings_url)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment