Permalink
Browse files

Update render test helper to use ActionDispatch::Testrequest and path…

…= i.o. fullpath=
  • Loading branch information...
1 parent b634a1a commit 4f94f28bddd34663573e82a0d40f43453e56d308 @jomz jomz committed Feb 12, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/support/render_test_helper.rb
@@ -51,10 +51,10 @@ def get_render_output(input, url, host = nil)
end
def setup_page(url = nil, host = nil)
- @page.request = ActionController::TestRequest.new
- @page.request.fullpath = (url || @page.url)
+ @page.request = ActionDispatch::TestRequest.new
+ @page.request.path = (url || @page.url)
@page.request.host = host || "testhost.tld"
- @page.response = ActionController::TestResponse.new
+ @page.response = ActionDispatch::TestResponse.new
end
end

0 comments on commit 4f94f28

Please sign in to comment.