Module: ActionDispatch::TestProcess

Includes:
FixtureFile
Included in:
ActionController::TestCase::Behavior, Integration::Session
Defined in:
lib/action_dispatch/testing/test_process.rb

Defined Under Namespace

Modules: FixtureFile

Instance Method Summary collapse

Methods included from FixtureFile

#fixture_file_upload

Instance Method Details

#assigns(key = nil) ⇒ Object

Raises:

  • (NoMethodError)


26
27
28
29
30
# File 'lib/action_dispatch/testing/test_process.rb', line 26

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

#cookiesObject



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

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

#flashObject



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

def flash
  @request.flash
end

#redirect_to_urlObject



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

def redirect_to_url
  @response.redirect_url
end

#sessionObject



32
33
34
# File 'lib/action_dispatch/testing/test_process.rb', line 32

def session
  @request.session
end