Added whois_body

This commit is contained in:
Priit Tark 2015-02-03 10:34:12 +02:00
parent eb2d7481c7
commit 39fad4515c
10 changed files with 73 additions and 20 deletions

View file

@ -33,6 +33,11 @@ describe Domain do
it 'should not have any versions' do
@domain.versions.should == []
end
it 'should not have whois_body' do
@domain.whois_body.should == nil
end
end
context 'with valid attributes' do
@ -51,6 +56,10 @@ describe Domain do
@domain.errors.full_messages.should match_array([])
end
it 'should have whois_body' do
@domain.whois_body.present?.should == true
end
context 'with versioning' do
it 'should not have one version' do
with_versioning do