Skip to content

Instantly share code, notes, and snippets.

View notapatch's full-sized avatar

Julian Richard Wigley notapatch

View GitHub Profile
@notapatch
notapatch / controller_spec.rb
Created October 10, 2012 14:01
Controller Testing Syntax: With reference to creating a params hash
# def post(action_name, params_hash = {}, session_hash = {})
describe PasswordResetsController do
describe "#create" do
it "does something when I post" do
post :create, user: { email: '[email protected]' }
end
end
end