diff options
author | Hrvoje Šimić <shime@twobucks.co> | 2017-03-12 17:51:26 +0100 |
---|---|---|
committer | Hrvoje Šimić <shime@twobucks.co> | 2017-03-13 17:05:12 +0100 |
commit | 1c6747999a74eac84d4e30d698f59c16e0309d64 (patch) | |
tree | 7830468ac8038636c75a0125925b4635b175b3fe /actionpack/lib/action_dispatch/testing/integration.rb | |
parent | 4d5060072b5446e0d13873f7edbecaf3527e7846 (diff) | |
download | rails-1c6747999a74eac84d4e30d698f59c16e0309d64.tar.gz rails-1c6747999a74eac84d4e30d698f59c16e0309d64.tar.bz2 rails-1c6747999a74eac84d4e30d698f59c16e0309d64.zip |
[docs] fix ActionDispatch documentation
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/integration.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index 5fa0b727ab..b17c9fd10e 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -247,7 +247,7 @@ module ActionDispatch wrapped_headers["HTTP_ACCEPT"] ||= [Mime[:js], Mime[:html], Mime[:xml], "text/xml", "*/*"].join(", ") end - # this modifies the passed request_env directly + # This modifies the passed request_env directly. if wrapped_headers.present? Http::Headers.from_hash(request_env).merge!(wrapped_headers) end @@ -258,7 +258,7 @@ module ActionDispatch session = Rack::Test::Session.new(_mock_session) # NOTE: rack-test v0.5 doesn't build a default uri correctly - # Make sure requested path is always a full uri + # Make sure requested path is always a full URI. session.request(build_full_uri(path, request_env), request_env) @request_count += 1 @@ -325,8 +325,8 @@ module ActionDispatch def create_session(app) klass = APP_SESSIONS[app] ||= Class.new(Integration::Session) { - # If the app is a Rails app, make url_helpers available on the session - # This makes app.url_for and app.foo_path available in the console + # If the app is a Rails app, make url_helpers available on the session. + # This makes app.url_for and app.foo_path available in the console. if app.respond_to?(:routes) include app.routes.url_helpers include app.routes.mounted_helpers |