mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Use FactoryBot factories instead of fabricators
This commit is contained in:
parent
0cd913daf8
commit
9fd02c738f
30 changed files with 241 additions and 267 deletions
|
@ -2,8 +2,8 @@ require 'rails_helper'
|
|||
|
||||
RSpec.describe DomainCron do
|
||||
it 'should expire domains' do
|
||||
Fabricate(:zone, origin: 'ee')
|
||||
@domain = Fabricate(:domain)
|
||||
create(:zone, origin: 'ee')
|
||||
@domain = create(:domain)
|
||||
|
||||
Setting.expire_warning_period = 1
|
||||
Setting.redemption_grace_period = 1
|
||||
|
@ -25,8 +25,8 @@ RSpec.describe DomainCron do
|
|||
end
|
||||
|
||||
it 'should start redemption grace period' do
|
||||
Fabricate(:zone, origin: 'ee')
|
||||
@domain = Fabricate(:domain)
|
||||
create(:zone, origin: 'ee')
|
||||
@domain = create(:domain)
|
||||
|
||||
old_valid_to = Time.zone.now - 10.days
|
||||
@domain.valid_to = old_valid_to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue