mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Updated pagination size and registrar trigger now honors only whois attributes
This commit is contained in:
parent
4cf57239a0
commit
64152479a9
8 changed files with 77 additions and 26 deletions
|
@ -23,6 +23,10 @@ describe WhoisRecord do
|
|||
it 'should not have whois body' do
|
||||
@whois_record.body.should == nil
|
||||
end
|
||||
|
||||
it 'should not have registrar' do
|
||||
@whois_record.registrar.should == nil
|
||||
end
|
||||
end
|
||||
|
||||
context 'with valid attributes' do
|
||||
|
@ -41,6 +45,10 @@ describe WhoisRecord do
|
|||
@whois_record.errors.full_messages.should match_array([])
|
||||
end
|
||||
|
||||
it 'should have registrar' do
|
||||
@whois_record.registrar.present?.should == true
|
||||
end
|
||||
|
||||
it 'should have whois body by default' do
|
||||
@whois_record.body.present?.should == true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue