Skip to content

Instantly share code, notes, and snippets.

@zeedunk
Created December 3, 2010 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save zeedunk/726446 to your computer and use it in GitHub Desktop.
Save zeedunk/726446 to your computer and use it in GitHub Desktop.
class ControllerTest < ActionController::TestCase
context 'on create' do
setup do
TheModel.stubs(:new).returns(@the_model)
@the_model.expects(:save)
post :create
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment