Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use ActionDispatch::TestRequest i.o. ActionController::TestRequest

  • Loading branch information...
commit 4f0453f5387909a7dfbcd5ace4524ab96a003fbc 1 parent 7a5f1da
@jomz jomz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/models/page_spec.rb
View
4 spec/models/page_spec.rb
@@ -767,8 +767,8 @@ class ::CustomFileNotFoundPage < FileNotFoundPage
describe Page, "processing" do
before :all do
- @request = ActionController::TestRequest.new :url => '/page/'
- @response = ActionController::TestResponse.new
+ @request = ActionDispatch::TestRequest.new :url => '/page/'
+ @response = ActionDispatch::TestResponse.new
@page = FactoryGirl.build(:page) do |page|
page.parts.build(:name => 'body', :content => 'Hello world!')
end
Please sign in to comment.
Something went wrong with that request. Please try again.