diff options
Diffstat (limited to 'actionpack/test/controller')
| -rw-r--r-- | actionpack/test/controller/base_test.rb | 2 | ||||
| -rw-r--r-- | actionpack/test/controller/integration_test.rb | 7 | ||||
| -rw-r--r-- | actionpack/test/controller/routing_test.rb | 4 | ||||
| -rw-r--r-- | actionpack/test/controller/test_case_test.rb | 2 | 
4 files changed, 7 insertions, 8 deletions
| diff --git a/actionpack/test/controller/base_test.rb b/actionpack/test/controller/base_test.rb index d8cea10153..558e710df9 100644 --- a/actionpack/test/controller/base_test.rb +++ b/actionpack/test/controller/base_test.rb @@ -193,7 +193,7 @@ class UrlOptionsTest < ActionController::TestCase        action: "home",        controller: "pages",        only_path: true, -      params: { "token" => "secret" } +      token: "secret"      }      assert_equal "/home?token=secret", rs.url_for(options) diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb index b078e8ad9f..39ede1442a 100644 --- a/actionpack/test/controller/integration_test.rb +++ b/actionpack/test/controller/integration_test.rb @@ -542,6 +542,9 @@ class IntegrationProcessTest < ActionDispatch::IntegrationTest      def with_test_route_set        with_routing do |set|          controller = ::IntegrationProcessTest::IntegrationController.clone +        controller.class_eval do +          include set.url_helpers +        end          set.draw do            get "moved" => redirect("/method") @@ -552,10 +555,6 @@ class IntegrationProcessTest < ActionDispatch::IntegrationTest            end          end -        controller.class_eval do -          include set.url_helpers -        end -          singleton_class.include(set.url_helpers)          yield diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index b97454f1a4..30f2a23b33 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -25,8 +25,8 @@ class UriReservedCharactersRoutingTest < ActiveSupport::TestCase      safe, unsafe = %w(: @ & = + $ , ;), %w(^ ? # [ ])      hex = unsafe.map { |char| "%" + char.unpack1("H2").upcase } -    @segment = "#{safe.join}#{unsafe.join}".freeze -    @escaped = "#{safe.join}#{hex.join}".freeze +    @segment = "#{safe.join}#{unsafe.join}" +    @escaped = "#{safe.join}#{hex.join}"    end    def test_route_generation_escapes_unsafe_path_characters diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb index dda2686a9b..6fc70d6248 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -542,7 +542,7 @@ XML    def test_params_passing_with_frozen_values      assert_nothing_raised do        get :test_params, params: { -        frozen: "icy".freeze, frozens: ["icy".freeze].freeze, deepfreeze: { frozen: "icy".freeze }.freeze +        frozen: -"icy", frozens: [-"icy"].freeze, deepfreeze: { frozen: -"icy" }.freeze        }      end      parsed_params = ::JSON.parse(@response.body) | 
