diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-29 12:19:41 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-29 12:19:41 -0200 |
commit | bb6fe7e73a96ac6a9130ed2a68a606ed5f5fb881 (patch) | |
tree | 0c5cb14d159ae2476a518e0b64f5c9f7804c932f /actionpack/test/dispatch/request | |
parent | 7814f901e1ec0cc3228914f60bd340922f98d94f (diff) | |
download | rails-bb6fe7e73a96ac6a9130ed2a68a606ed5f5fb881.tar.gz rails-bb6fe7e73a96ac6a9130ed2a68a606ed5f5fb881.tar.bz2 rails-bb6fe7e73a96ac6a9130ed2a68a606ed5f5fb881.zip |
Consistent usage of spaces in hashes across our codebase
Diffstat (limited to 'actionpack/test/dispatch/request')
3 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/request/json_params_parsing_test.rb b/actionpack/test/dispatch/request/json_params_parsing_test.rb index c7925fe0fa..d77341bc64 100644 --- a/actionpack/test/dispatch/request/json_params_parsing_test.rb +++ b/actionpack/test/dispatch/request/json_params_parsing_test.rb @@ -56,7 +56,7 @@ class JsonParamsParsingTest < ActionDispatch::IntegrationTest with_test_routing do output = StringIO.new json = "[\"person]\": {\"name\": \"David\"}}" - post "/parse", params: json, headers: {'CONTENT_TYPE' => 'application/json', 'action_dispatch.show_exceptions' => true, 'action_dispatch.logger' => ActiveSupport::Logger.new(output)} + post "/parse", params: json, headers: { 'CONTENT_TYPE' => 'application/json', 'action_dispatch.show_exceptions' => true, 'action_dispatch.logger' => ActiveSupport::Logger.new(output) } assert_response :bad_request output.rewind && err = output.read assert err =~ /Error occurred while parsing request parameters/ diff --git a/actionpack/test/dispatch/request/multipart_params_parsing_test.rb b/actionpack/test/dispatch/request/multipart_params_parsing_test.rb index d483ae1cc1..6d1b267ad2 100644 --- a/actionpack/test/dispatch/request/multipart_params_parsing_test.rb +++ b/actionpack/test/dispatch/request/multipart_params_parsing_test.rb @@ -140,7 +140,7 @@ class MultipartParamsParsingTest < ActionDispatch::IntegrationTest test "uploads and reads file" do with_test_routing do - post '/read', params: { uploaded_data: fixture_file_upload(FIXTURE_PATH + "/hello.txt", "text/plain")} + post '/read', params: { uploaded_data: fixture_file_upload(FIXTURE_PATH + "/hello.txt", "text/plain") } assert_equal "File: Hello", response.body end end diff --git a/actionpack/test/dispatch/request/query_string_parsing_test.rb b/actionpack/test/dispatch/request/query_string_parsing_test.rb index 4175945f30..bc6716525e 100644 --- a/actionpack/test/dispatch/request/query_string_parsing_test.rb +++ b/actionpack/test/dispatch/request/query_string_parsing_test.rb @@ -147,7 +147,7 @@ class QueryStringParsingTest < ActionDispatch::IntegrationTest get ':action', :to => ::QueryStringParsingTest::TestController end - get "/parse", headers: {"QUERY_STRING" => "foo[]=bar&foo[4]=bar"} + get "/parse", headers: { "QUERY_STRING" => "foo[]=bar&foo[4]=bar" } assert_response :bad_request end end |