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

This commit is contained in:
Martin Lensment 2014-08-05 17:19:31 +03:00
commit 38f0528d70
6 changed files with 25 additions and 35 deletions

View file

@ -19,7 +19,8 @@ describe 'EPP Contact', epp: true do
expect(Contact.first.org_name).to eq('Example Inc.')
end
it 'updates a contact with same ident' do
it 'updates a contact with same ident', pending: true do
pending 'fixing this as soon as contact#update is done'
Fabricate(:contact)
response = epp_request('contacts/create.xml')
expect(response[:result_code]).to eq('1000')

View file

@ -5,5 +5,5 @@ Fabricator(:contact) do
ident '37605030299'
code 'sh8913'
ident_type 'op'
addresses(count: 2)
address
end

View file

@ -1,7 +1,7 @@
require "rails_helper"
describe Contact do
it { should have_many(:addresses) }
it { should have_one(:address) }
context 'with invalid attribute' do
before(:each) { @contact = Fabricate(:contact) }