123456789_123456789_123456789_123456789_123456789_

Module: ActionDispatch::TestProcess

Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Included In:
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, FixtureFile
Defined in: actionpack/lib/action_dispatch/testing/test_process.rb

Instance Method Summary

FixtureFile - Included

#file_fixture_upload

Shortcut for Rack::Test::UploadedFile.new(File.join(ActionDispatch::IntegrationTest.file_fixture_path, path), type):

#fixture_file_upload

Instance Method Details

#assigns(key = nil)

Raises:

  • (NoMethodError)
[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 31

def assigns(key = nil)
  raise NoMethodError,
    "assigns has been extracted to a gem. To continue using it,
    add `gem 'rails-controller-testing'` to your Gemfile."
end

#cookies

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 45

def cookies
  @cookie_jar ||= Cookies::CookieJar.build(@request, @request.cookies)
end

#flash

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 41

def flash
  @request.flash
end

#redirect_to_url

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 49

def redirect_to_url
  @response.redirect_url
end

#session

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 37

def session
  @request.session
end