summaryrefslogtreecommitdiff
path: root/spec/support/helpers/feature_flag_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/feature_flag_helpers.rb')
-rw-r--r--spec/support/helpers/feature_flag_helpers.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/helpers/feature_flag_helpers.rb b/spec/support/helpers/feature_flag_helpers.rb
index af7a674f3bc..51ba9039b70 100644
--- a/spec/support/helpers/feature_flag_helpers.rb
+++ b/spec/support/helpers/feature_flag_helpers.rb
@@ -14,6 +14,12 @@ module FeatureFlagHelpers
strategies: strategies)
end
+ def create_strategy(feature_flag, name = 'default', parameters = {})
+ create(:operations_strategy,
+ feature_flag: feature_flag,
+ name: name)
+ end
+
def within_feature_flag_row(index)
within ".gl-responsive-table-row:nth-child(#{index + 1})" do
yield