Created
August 7, 2013 07:05
-
-
Save nowlinuxing/6171837 to your computer and use it in GitHub Desktop.
get/post to controller#action on rails c
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
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