Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ActionView::TestCase
- class TestController < ActionController::Base
- attr_accessor :request, :response, :params
- def initialize
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- #Hack Hack Hack: TestCase doesn't have context of a current url so cheat a bit
- @params = {}
- send(:initialize_current_url)
- end
- end
- end
Add Comment
Please, Sign In to add comment