Remove shoulda-matchers gem

#206
This commit is contained in:
Artur Beljajev 2016-10-20 15:15:46 +03:00
parent 60bf329846
commit fe8559dbb0
18 changed files with 0 additions and 52 deletions

View file

@ -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

View file

@ -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

View file

@ -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: '')

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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