Guest User

Untitled

a guest
Feb 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. class ActionView::TestCase
  2. class TestController < ActionController::Base
  3. attr_accessor :request, :response, :params
  4.  
  5. def initialize
  6. @request = ActionController::TestRequest.new
  7. @response = ActionController::TestResponse.new
  8.  
  9. #Hack Hack Hack: TestCase doesn't have context of a current url so cheat a bit
  10. @params = {}
  11. send(:initialize_current_url)
  12. end
  13. end
  14. end
Add Comment
Please, Sign In to add comment