mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-07 12:16:14 +00:00
9 lines
240 B
Ruby
9 lines
240 B
Ruby
# 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
|