Skip to content

Instantly share code, notes, and snippets.

@nowlinuxing
Created August 7, 2013 07:05
Show Gist options
  • Save nowlinuxing/6171837 to your computer and use it in GitHub Desktop.
Save nowlinuxing/6171837 to your computer and use it in GitHub Desktop.
get/post to controller#action on rails c
ApplicationController.allow_forgery_protection = false
app.instance_eval do
post('/login', user: {login: 'bob', password: 'pass'})
get("/my")
puts response.body
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment