spec/flipper/ui/actions/groups_gate_spec.rb in flipper-ui-0.17.2 vs spec/flipper/ui/actions/groups_gate_spec.rb in flipper-ui-0.18.0
- old
+ new
@@ -70,37 +70,31 @@
context 'for an unregistered group' do
context 'unknown group name' do
let(:group_name) { 'not_here' }
- # rubocop:disable Layout/LineLength
it 'redirects back to feature' do
expect(last_response.status).to be(302)
expect(last_response.headers['Location']).to eq('/features/search/groups?error=The+group+named+%22not_here%22+has+not+been+registered.')
end
- # rubocop:enable Layout/LineLength
end
context 'empty group name' do
let(:group_name) { '' }
- # rubocop:disable Layout/LineLength
it 'redirects back to feature' do
expect(last_response.status).to be(302)
expect(last_response.headers['Location']).to eq('/features/search/groups?error=The+group+named+%22%22+has+not+been+registered.')
end
- # rubocop:enable Layout/LineLength
end
context 'nil group name' do
let(:group_name) { nil }
- # rubocop:disable Layout/LineLength
it 'redirects back to feature' do
expect(last_response.status).to be(302)
expect(last_response.headers['Location']).to eq('/features/search/groups?error=The+group+named+%22%22+has+not+been+registered.')
end
- # rubocop:enable Layout/LineLength
end
end
end
context 'disabling a group' do