0
0
Fork 0

Move feature flag test setup into config (#34124)

This commit is contained in:
David Roetzel 2025-03-11 14:29:17 +01:00 committed by GitHub
parent dc43699b77
commit bedf808e02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 19 deletions

View file

@ -0,0 +1,8 @@
# frozen_string_literal: true
RSpec.configure do |config|
config.before(:example, :feature) do |example|
feature = example.metadata[:feature]
allow(Mastodon::Feature).to receive(:"#{feature}_enabled?").and_return(true)
end
end