Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-28 20:29:56 +0300
committerRémy Coutable <remy@rymai.me>2017-06-28 20:29:56 +0300
commit289fae78e971e117e69fb87602f5f6284419b863 (patch)
treea9f69eeae404bc939eadeb8fe4c73614868056d4 /spec/requests/api/features_spec.rb
parent94b673747e94e32dea576b0eaa915f6fb731628d (diff)
Rename flipper_group to feature_group
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests/api/features_spec.rb')
-rw-r--r--spec/requests/api/features_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/requests/api/features_spec.rb b/spec/requests/api/features_spec.rb
index 0ee0749c7a1..1d8aaeea8f2 100644
--- a/spec/requests/api/features_spec.rb
+++ b/spec/requests/api/features_spec.rb
@@ -88,8 +88,8 @@ describe API::Features do
'gates' => [{ 'key' => 'boolean', 'value' => true }])
end
- it 'creates an enabled feature for the given Flipper group when passed flipper_group=perf_team' do
- post api("/features/#{feature_name}", admin), value: 'true', flipper_group: 'perf_team'
+ it 'creates an enabled feature for the given Flipper group when passed feature_group=perf_team' do
+ post api("/features/#{feature_name}", admin), value: 'true', feature_group: 'perf_team'
expect(response).to have_http_status(201)
expect(json_response).to eq(
@@ -147,8 +147,8 @@ describe API::Features do
'gates' => [{ 'key' => 'boolean', 'value' => true }])
end
- it 'enables the feature for the given Flipper group when passed flipper_group=perf_team' do
- post api("/features/#{feature_name}", admin), value: 'true', flipper_group: 'perf_team'
+ it 'enables the feature for the given Flipper group when passed feature_group=perf_team' do
+ post api("/features/#{feature_name}", admin), value: 'true', feature_group: 'perf_team'
expect(response).to have_http_status(201)
expect(json_response).to eq(
@@ -188,11 +188,11 @@ describe API::Features do
'gates' => [{ 'key' => 'boolean', 'value' => false }])
end
- it 'disables the feature for the given Flipper group when passed flipper_group=perf_team' do
+ it 'disables the feature for the given Flipper group when passed feature_group=perf_team' do
feature.enable(Feature.group(:perf_team))
expect(Feature.get(feature_name).enabled?(admin)).to be_truthy
- post api("/features/#{feature_name}", admin), value: 'false', flipper_group: 'perf_team'
+ post api("/features/#{feature_name}", admin), value: 'false', feature_group: 'perf_team'
expect(response).to have_http_status(201)
expect(json_response).to eq(