-
-
Save vishnuatrai/d9747a9dc7dae4ca71644c9c58e04a85 to your computer and use it in GitHub Desktop.
execute Controller#action via rails runner with user authentication (devise)
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
rails runner "ApplicationController.allow_forgery_protection = false; s = ActionDispatch::Integration::Session.new(Rails.application); s.post('/login', user: {login: 'admin', password: 'password'}); s.get('/my'); puts s.response.body" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment