diff --git a/Gemfile.lock b/Gemfile.lock index 6adcd2ea..1cedd49c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -129,7 +129,7 @@ GEM net-http ffi (1.16.3) find_a_port (1.0.1) - gds-api-adapters (96.0.3) + gds-api-adapters (97.0.0) addressable link_header null_logger @@ -216,9 +216,10 @@ GEM marcel (1.0.4) matrix (0.4.2) method_source (1.0.0) - mime-types (3.5.2) + mime-types (3.6.0) + logger mime-types-data (~> 3.2015) - mime-types-data (3.2024.0820) + mime-types-data (3.2024.1001) mini_mime (1.1.5) mini_portile2 (2.8.7) minitest (5.25.1) diff --git a/app/models/route_set.rb b/app/models/route_set.rb index d4539a6b..3158ea22 100644 --- a/app/models/route_set.rb +++ b/app/models/route_set.rb @@ -95,7 +95,6 @@ def register_redirect(route) route.fetch(:path), route.fetch(:type), route.fetch(:destination), - route.fetch(:redirect_type, "permanent"), segments_mode: route[:segments_mode], ) end diff --git a/spec/support/router_helpers.rb b/spec/support/router_helpers.rb index c79a0080..c1cfa836 100644 --- a/spec/support/router_helpers.rb +++ b/spec/support/router_helpers.rb @@ -25,7 +25,7 @@ def assert_redirect_routes_registered(redirects) # NOTE: WebMock stubs allow you to assert against already executed requests. redirects.each do |(path, type, destination, segments_mode)| - redirect_signature = stub_redirect_registration(path, type, destination, "permanent", segments_mode) + redirect_signature = stub_redirect_registration(path, type, destination, segments_mode) assert_requested(redirect_signature, times: 1) end end