summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorcharlie ablett <cablett@gitlab.com>2019-07-09 12:45:23 +0000
committerFatih Acet <acetfatih@gmail.com>2019-07-09 12:45:23 +0000
commit639ab5214cb569dce70080020e3181946e5d3bf1 (patch)
treef5fc02b28a9d16b1139056858e5db7280add7ed9 /spec/routing
parent630a8e80501aff46526086e8f2c72bb846780390 (diff)
downloadgitlab-ce-639ab5214cb569dce70080020e3181946e5d3bf1.tar.gz
Remove `:graphql` feature flag
- Remove `FeatureConstrainer` call wrapping api endpoint - Remove `Feature.enabled?(:graphql)` conditionals in back and frontend - Modify graphql test to be graphql flag agnostic - Remove api routing spec - Remove frontend feature flag via `gon`
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/api_routing_spec.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/routing/api_routing_spec.rb b/spec/routing/api_routing_spec.rb
deleted file mode 100644
index 3c48ead4ff2..00000000000
--- a/spec/routing/api_routing_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require 'spec_helper'
-
-describe 'api', 'routing' do
- context 'when graphql is disabled' do
- before do
- stub_feature_flags(graphql: false)
- end
-
- it 'does not route to the GraphqlController' do
- expect(post('/api/graphql')).not_to route_to('graphql#execute')
- end
- end
-
- context 'when graphql is enabled' do
- before do
- stub_feature_flags(graphql: true)
- end
-
- it 'routes to the GraphqlController' do
- expect(post('/api/graphql')).to route_to('graphql#execute')
- end
- end
-end