From 9fde619d348387f7d79e6860a7708e775cedcabc Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Tue, 27 Jan 2015 11:29:37 +0200 Subject: [PATCH] Updated contact spec --- spec/epp/contact_spec.rb | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/spec/epp/contact_spec.rb b/spec/epp/contact_spec.rb index a2a5f9cdb..dd094e126 100644 --- a/spec/epp/contact_spec.rb +++ b/spec/epp/contact_spec.rb @@ -60,7 +60,6 @@ describe 'EPP Contact', epp: true do end it 'successfully creates a contact' do - ApiLog::EppLog.delete_all response = epp_plain_request(create_contact_xml, :xml) response[:msg].should == 'Command completed successfully' @@ -74,14 +73,12 @@ describe 'EPP Contact', epp: true do @contact.ident.should == '37605030299' @contact.address.street.should == '123 Example' - log = ApiLog::EppLog.all - - log.length.should == 1 - log[0].request_command.should == 'create' - log[0].request_object.should == 'contact' - log[0].request_successful.should == true - log[0].api_user_name.should == 'gitlab' - log[0].api_user_registrar.should == 'Registrar OÜ' + log = ApiLog::EppLog.last + log.request_command.should == 'create' + log.request_object.should == 'contact' + log.request_successful.should == true + log.api_user_name.should == 'gitlab' + log.api_user_registrar.should == 'Registrar OÜ' end it 'successfully adds registrar' do