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

#file_fixture_upload

Instance Method Details

#assigns(key = nil) ⇒ Object

Raises:

  • (NoMethodError)


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

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



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

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

#flashObject



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

def flash
  @request.flash
end

#redirect_to_urlObject



53
54
55
# File 'lib/action_dispatch/testing/test_process.rb', line 53

def redirect_to_url
  @response.redirect_url
end

#sessionObject



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

def session
  @request.session
end