Module: ActionDispatch::TestProcess
- Includes:
- FixtureFile
- Included in:
- ActionController::TestCase::Behavior, Integration::Session, ActionView::TestCase::Behavior, ActionView::TestCase::TestController
- Defined in:
- actionpack/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
30 31 32 33 34 |
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 30 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
44 45 46 |
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 44 def @cookie_jar ||= Cookies::CookieJar.build(@request, @request.) end |
#flash ⇒ Object
40 41 42 |
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 40 def flash @request.flash end |
#redirect_to_url ⇒ Object
48 49 50 |
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 48 def redirect_to_url @response.redirect_url end |
#session ⇒ Object
36 37 38 |
# File 'actionpack/lib/action_dispatch/testing/test_process.rb', line 36 def session @request.session end |