Updated pagination size and registrar trigger now honors only whois attributes

This commit is contained in:
Priit Tark 2015-04-30 18:29:26 +03:00
parent 4cf57239a0
commit 64152479a9
8 changed files with 77 additions and 26 deletions

View file

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