mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-30 18:58:39 -04:00
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
12 lines
359 B
Ruby
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
|