mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Change domains.delete_at
database column type to date, rename to
`delete_date` Closes #1125
This commit is contained in:
parent
ab9c5c45de
commit
cea834d5b7
31 changed files with 159 additions and 71 deletions
|
@ -132,7 +132,7 @@ RSpec.describe Domain do
|
|||
old_valid_to = Time.zone.now - 10.days
|
||||
@domain.valid_to = old_valid_to
|
||||
@domain.statuses = [DomainStatus::EXPIRED]
|
||||
@domain.outzone_at, @domain.delete_at = nil, nil
|
||||
@domain.outzone_at, @domain.delete_date = nil, nil
|
||||
@domain.save
|
||||
|
||||
DomainCron.start_expire_period
|
||||
|
@ -711,8 +711,8 @@ RSpec.describe Domain do
|
|||
expect(domain.outzone_at).to eq(Time.zone.parse('06.07.2010 10:30'))
|
||||
end
|
||||
|
||||
it 'sets :delete_at to :outzone_at + redemption grace period' do
|
||||
expect(domain.delete_at).to eq(Time.zone.parse('08.07.2010 10:30'))
|
||||
it 'sets :delete_date to :outzone_at + redemption grace period' do
|
||||
expect(domain.delete_date).to eq(Date.parse('08.07.2010'))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue