diff options
Diffstat (limited to 'spec/controllers/groups_controller_spec.rb')
-rw-r--r-- | spec/controllers/groups_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb index 31257fd3a30..01bb3761a25 100644 --- a/spec/controllers/groups_controller_spec.rb +++ b/spec/controllers/groups_controller_spec.rb @@ -251,7 +251,7 @@ RSpec.describe GroupsController, factory_default: :keep, feature_category: :code post :create, params: { group: { parent_id: group.id, path: 'subgroup' } } expect(response).to be_redirect - expect(response.body).to match(%r{http://test.host/#{group.path}/subgroup}) + expect(response.location).to eq("http://test.host/#{group.path}/subgroup") end end |