mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Migrate fabricators to factory bot factories (#626)
* 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
This commit is contained in:
parent
acfe0552fc
commit
2da578a437
88 changed files with 356 additions and 610 deletions
|
@ -7,11 +7,11 @@ RSpec.describe Domain, db: false do
|
|||
before :example do
|
||||
travel_to Time.zone.parse('05.07.2010 00:00')
|
||||
|
||||
Fabricate(:zone, origin: 'ee')
|
||||
create(:zone, origin: 'ee')
|
||||
|
||||
Fabricate.create(:domain, id: 1, expire_time: Time.zone.parse('04.07.2010 23:59'))
|
||||
Fabricate.create(:domain, id: 2, expire_time: Time.zone.parse('05.07.2010 00:00'))
|
||||
Fabricate.create(:domain, id: 3, expire_time: Time.zone.parse('05.07.2010 00:01'))
|
||||
create(:domain, id: 1, expire_time: Time.zone.parse('04.07.2010 23:59'))
|
||||
create(:domain, id: 2, expire_time: Time.zone.parse('05.07.2010 00:00'))
|
||||
create(:domain, id: 3, expire_time: Time.zone.parse('05.07.2010 00:01'))
|
||||
end
|
||||
|
||||
it 'returns expired domains' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue