mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28:27 +02:00
Merge branch 'master' into registry-790
This commit is contained in:
commit
453acf6616
20 changed files with 41 additions and 63 deletions
|
@ -3,6 +3,7 @@ FactoryBot.define do
|
|||
sequence(:name) { |n| "test#{n}.com" }
|
||||
period 1
|
||||
period_unit 'y' # Year
|
||||
valid_to Time.zone.parse('2010-07-05')
|
||||
registrar
|
||||
registrant
|
||||
|
||||
|
|
|
@ -21,11 +21,7 @@ RSpec.describe Epp::Domain, db: false do
|
|||
expect(domain.registered_at).to eq(Time.zone.parse('05.07.2010'))
|
||||
end
|
||||
|
||||
it 'has :valid_from set to now' do
|
||||
expect(domain.valid_from).to eq(Time.zone.parse('05.07.2010'))
|
||||
end
|
||||
|
||||
it 'has :valid_to set to the beginning of next day after :valid_from' do
|
||||
it 'has :valid_to set to the beginning of next day after :registered_at' do
|
||||
expect(domain.valid_to).to eq(Time.zone.parse('06.07.2011 00:00'))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue