mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
parent
60bf329846
commit
fe8559dbb0
18 changed files with 0 additions and 52 deletions
|
@ -1,9 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe Account do
|
||||
it { should belong_to(:registrar) }
|
||||
it { should have_many(:account_activities) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@account = Account.new
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe Address do
|
||||
it { should belong_to(:contact) }
|
||||
|
||||
context 'about class' do
|
||||
it 'should have versioning enabled?' do
|
||||
Address.paper_trail_enabled_for_model?.should == true
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe ApiUser do
|
||||
it { should belong_to(:registrar) }
|
||||
|
||||
context 'class methods' do
|
||||
before do
|
||||
Fabricate(:api_user, identity_code: '')
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe BankStatement do
|
||||
it { should have_many(:bank_transactions) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@bank_statement = BankStatement.new
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe BankTransaction do
|
||||
it { should belong_to(:bank_statement) }
|
||||
it { should have_one(:account_activity) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@bank_transaction = BankTransaction.new
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe Certificate do
|
||||
it { should belong_to(:api_user) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@certificate = Certificate.new
|
||||
|
|
|
@ -5,8 +5,6 @@ describe Dnskey do
|
|||
Fabricate(:zonefile_setting, origin: 'ee')
|
||||
end
|
||||
|
||||
it { should belong_to(:domain) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@dnskey = Dnskey.new
|
||||
|
|
|
@ -9,15 +9,6 @@ describe Domain do
|
|||
Fabricate(:zonefile_setting, origin: 'com.ee')
|
||||
end
|
||||
|
||||
it { should belong_to(:registrar) }
|
||||
it { should have_many(:nameservers) }
|
||||
it { should belong_to(:registrant) }
|
||||
it { should have_many(:tech_contacts) }
|
||||
it { should have_many(:admin_contacts) }
|
||||
it { should have_many(:domain_transfers) }
|
||||
it { should have_many(:dnskeys) }
|
||||
it { should have_many(:legal_documents) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@domain = Domain.new
|
||||
|
|
|
@ -5,8 +5,6 @@ describe DomainTransfer do
|
|||
Fabricate(:zonefile_setting, origin: 'ee')
|
||||
end
|
||||
|
||||
it { should belong_to(:domain) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@domain_transfer = DomainTransfer.new
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe Invoice do
|
||||
it { should belong_to(:seller) }
|
||||
it { should belong_to(:buyer) }
|
||||
it { should have_many(:invoice_items) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@invoice = Invoice.new
|
||||
|
|
|
@ -5,11 +5,6 @@ describe Keyrelay do
|
|||
Fabricate(:zonefile_setting, origin: 'ee')
|
||||
end
|
||||
|
||||
it { should belong_to(:domain) }
|
||||
it { should belong_to(:requester) }
|
||||
it { should belong_to(:accepter) }
|
||||
it { should have_many(:legal_documents) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@keyrelay = Keyrelay.new
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe Message do
|
||||
it { should belong_to(:registrar) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@mssage = Message.new
|
||||
|
|
|
@ -5,8 +5,6 @@ describe Nameserver do
|
|||
Fabricate(:zonefile_setting, origin: 'ee')
|
||||
end
|
||||
|
||||
it { should belong_to(:domain) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@nameserver = Nameserver.new
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe Registrar do
|
||||
it { should have_many(:domains) }
|
||||
it { should have_many(:api_users) }
|
||||
it { should have_many(:messages) }
|
||||
it { should have_many(:white_ips) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@registrar = Registrar.new
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe WhiteIp do
|
||||
it { should belong_to(:registrar) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :all do
|
||||
@white_ip = WhiteIp.new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue