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
- #assigns(key = nil) ⇒ Object
- #cookies ⇒ Object
- #flash ⇒ Object
- #redirect_to_url ⇒ Object
- #session ⇒ Object
Methods included from FixtureFile
Instance Method Details
#assigns(key = nil) ⇒ Object
56 57 58 59 60 |
# File 'lib/action_dispatch/testing/test_process.rb', line 56 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 ⇒ Object
70 71 72 |
# File 'lib/action_dispatch/testing/test_process.rb', line 70 def @cookie_jar ||= Cookies::CookieJar.build(@request, @request.) end |
#flash ⇒ Object
66 67 68 |
# File 'lib/action_dispatch/testing/test_process.rb', line 66 def flash @request.flash end |
#redirect_to_url ⇒ Object
74 75 76 |
# File 'lib/action_dispatch/testing/test_process.rb', line 74 def redirect_to_url @response.redirect_url end |
#session ⇒ Object
62 63 64 |
# File 'lib/action_dispatch/testing/test_process.rb', line 62 def session @request.session end |