Files
growstuff/spec/support/flipper.rb
T
Brenda Wallace 85b5ff9ecd Add feature flags, with job ideas as the first
Admins switch features on and off at /admin/features, kept in Flipper.
Job ideas (the page, the banners and the overlay) only show while its
flag is on. Features are off until switched on.

Closes #5050
2026-10-24 18:01:56 +13:00

12 lines
359 B
Ruby

# frozen_string_literal: true
# Features are kept in memory in specs, and all off at the start of each. Tag an
# example group with `flipper: :name` (or a list of names) to have them on.
require 'flipper/test_help'
RSpec.configure do |config|
config.before do |example|
Array(example.metadata[:flipper]).each { |name| Flipper.enable(name) }
end
end