mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
parent
e840719b8a
commit
687d56c412
4 changed files with 6 additions and 10 deletions
|
@ -9,7 +9,6 @@ Fabricator(:registrar) do
|
||||||
country_code 'EE'
|
country_code 'EE'
|
||||||
code { sequence(:code) { |i| "REGISTRAR#{i}" } }
|
code { sequence(:code) { |i| "REGISTRAR#{i}" } }
|
||||||
reference_no { sequence(:reference_no) { |i| "RF#{i}" } }
|
reference_no { sequence(:reference_no) { |i| "RF#{i}" } }
|
||||||
white_ips { [Fabricate(:white_ip), Fabricate(:white_ip, interfaces: [WhiteIp::REGISTRAR])] }
|
|
||||||
end
|
end
|
||||||
|
|
||||||
Fabricator(:registrar_with_no_account_activities, from: :registrar) do
|
Fabricator(:registrar_with_no_account_activities, from: :registrar) do
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
Fabricator(:white_ip) do
|
|
||||||
ipv4 '127.0.0.1'
|
|
||||||
interfaces [WhiteIp::API]
|
|
||||||
end
|
|
||||||
|
|
||||||
Fabricator(:white_ip_registrar, from: :white_ip) do
|
|
||||||
interfaces [WhiteIp::REGISTRAR]
|
|
||||||
end
|
|
5
spec/factories/white_ip.rb
Normal file
5
spec/factories/white_ip.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
FactoryGirl.define do
|
||||||
|
factory :white_ip do
|
||||||
|
ipv4 '127.0.0.1'
|
||||||
|
end
|
||||||
|
end
|
|
@ -25,7 +25,7 @@ describe WhiteIp do
|
||||||
|
|
||||||
context 'with valid attributes' do
|
context 'with valid attributes' do
|
||||||
before :all do
|
before :all do
|
||||||
@white_ip = Fabricate(:white_ip)
|
@white_ip = create(:white_ip)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should have one version' do
|
it 'should have one version' do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue