Skip to Content Skip to Search

module ActionDispatch::TestProcess

Inherits From

Public instance methods

assigns(key = nil)

Permalink
Source code 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()

Permalink
Source code GitHub
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 45
def cookies
  @cookie_jar ||= Cookies::CookieJar.build(@request, @request.cookies)
end

flash()

Permalink
Source code GitHub
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 41
def flash
  @request.flash
end

redirect_to_url()

Permalink
Source code GitHub
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 49
def redirect_to_url
  @response.redirect_url
end

session()

Permalink
Source code GitHub
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 37
def session
  @request.session
end

Namespace

Definition files