Use FactoryBot factories instead of fabricators

This commit is contained in:
Artur Beljajev 2017-10-28 21:36:17 +03:00
parent 0cd913daf8
commit 9fd02c738f
30 changed files with 241 additions and 267 deletions

View file

@ -1,7 +1,7 @@
RSpec.configure do |config|
config.before :example do |example|
if example.metadata[:db] && (example.metadata[:settings] != false)
Fabricate(:zone, origin: 'com')
create(:zone, origin: 'com')
Setting.ds_algorithm = 2
Setting.ds_data_allowed = true