Merge branch 'master' of github.com:domify/registry

This commit is contained in:
Martin Lensment 2015-02-03 11:20:00 +02:00
commit 2fb319bd96
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