mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
* Remove factory_girl include from dev rake task
No longer needed after 92b125b4a7
* Add missing factories
* Use FactoryBot factories instead of fabricators
* Remove all fabricators
* Remove unused method
* Remove fabrication gem
* Rename FactoryGirl to FactoryBot
https://robots.thoughtbot.com/factory_bot
12 lines
248 B
Ruby
12 lines
248 B
Ruby
FactoryBot.define do
|
|
factory :zone, class: DNS::Zone do
|
|
sequence(:origin) { |n| "test#{n}" }
|
|
ttl 1
|
|
refresh 1
|
|
add_attribute :retry, 1
|
|
expire 1
|
|
minimum_ttl 1
|
|
email 'test.test'
|
|
master_nameserver 'test.test'
|
|
end
|
|
end
|