mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Using fabricator sequence instead of next_domain_name
This commit is contained in:
parent
2ba8804391
commit
cec7a27177
2 changed files with 2 additions and 2 deletions
|
@ -696,7 +696,7 @@ describe 'EPP Domain', epp: true do
|
|||
end
|
||||
|
||||
context 'with valid domain' do
|
||||
before(:each) { Fabricate(:domain, name: next_domain_name, registrar: @registrar1, dnskeys: []) }
|
||||
before(:each) { Fabricate(:domain, registrar: @registrar1, dnskeys: []) }
|
||||
let(:domain) { Domain.last }
|
||||
|
||||
### TRANSFER ###
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Fabricator(:domain) do
|
||||
name { "fabricate_name#{rand(1_000_000)}.ee" }
|
||||
name { sequence(:name) { |i| "fabricate_name#{i}.ee" } }
|
||||
valid_to Date.new(2014, 8, 7)
|
||||
period 1
|
||||
period_unit 'y'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue