spec/flipper/ui/actions/feature_spec.rb in flipper-ui-0.15.0 vs spec/flipper/ui/actions/feature_spec.rb in flipper-ui-0.16.0
- old
+ new
@@ -105,6 +105,26 @@
expect(last_response.body).to include('Groups')
expect(last_response.body).to include('Percentage of Time')
expect(last_response.body).to include('Percentage of Actors')
end
end
+
+ describe 'GET /features/:feature with slash in feature name' do
+ before do
+ get '/features/a/b'
+ end
+
+ it 'responds with success' do
+ expect(last_response.status).to be(200)
+ end
+
+ it 'renders template' do
+ expect(last_response.body).to include('a/b')
+ expect(last_response.body).to include('Enable')
+ expect(last_response.body).to include('Disable')
+ expect(last_response.body).to include('Actors')
+ expect(last_response.body).to include('Groups')
+ expect(last_response.body).to include('Percentage of Time')
+ expect(last_response.body).to include('Percentage of Actors')
+ end
+ end
end