From c5853d4d61e17469ab187a7edcdc0437116ffcd1 Mon Sep 17 00:00:00 2001 From: tamsin johnson Date: Tue, 25 Apr 2023 13:05:11 -0700 Subject: [PATCH] allow flipflop parameters in controller test --- spec/controllers/hyrax/admin/strategies_controller_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/controllers/hyrax/admin/strategies_controller_spec.rb b/spec/controllers/hyrax/admin/strategies_controller_spec.rb index 3630ca6242..ec95b6f95c 100644 --- a/spec/controllers/hyrax/admin/strategies_controller_spec.rb +++ b/spec/controllers/hyrax/admin/strategies_controller_spec.rb @@ -33,7 +33,9 @@ it "is successful" do patch :update, params: { feature_id: feature.id, id: strategy } - expect(response).to redirect_to Hyrax::Engine.routes.url_helpers.admin_features_path(locale: 'en') + + expect(response.location) + .to include Hyrax::Engine.routes.url_helpers.admin_features_path(locale: 'en') end end end