sutty/test/factories/site.rb

18 lines
329 B
Ruby
Raw Normal View History

2019-07-11 19:00:28 +00:00
# frozen_string_literal: true
FactoryBot.define do
factory :site do
2019-07-12 18:34:16 +00:00
name { "test-#{SecureRandom.hex}" }
2019-07-17 22:18:48 +00:00
design
2019-07-19 22:37:53 +00:00
licencia
after :build do |site|
site.deploys << build(:deploy_local, site: site)
end
after :create do |site|
site.deploys << create(:deploy_local, site: site)
end
2019-07-11 19:00:28 +00:00
end
end