From 48fcf1f042c568d614c213b070a6ff974882415b Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 21 Apr 2017 17:53:56 +0300 Subject: [PATCH] Allow ignoring settings in specs --- spec/support/settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/settings.rb b/spec/support/settings.rb index f5d0f934d..b87e94a56 100644 --- a/spec/support/settings.rb +++ b/spec/support/settings.rb @@ -1,6 +1,6 @@ RSpec.configure do |config| config.before :example do |example| - if example.metadata[:db] + if example.metadata[:db] && (example.metadata[:settings] != false) Fabricate(:zonefile_setting, origin: 'com') Setting.ds_algorithm = 2