mirror of
https://github.com/glitch-soc/mastodon
synced 2025-04-24 18:54:51 +00:00
8 lines
240 B
Ruby
8 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
|