DEV: correct fragile spec

This commit is contained in:
Sam 2018-05-25 14:29:11 +10:00
parent 720a12ce76
commit 610bfec73e
1 changed files with 9 additions and 0 deletions

View File

@ -6,9 +6,18 @@ describe SiteSettings::DefaultsProvider do
SiteSettings::LocalProcessProvider.new
end
before do
MessageBus.off
end
after do
MessageBus.on
end
def new_settings(provider)
Class.new do
extend SiteSettingExtension
self.listen_for_changes = false
self.provider = provider
end
end