Test fixes

This commit is contained in:
Martin Lensment 2015-01-16 16:14:57 +02:00
parent 07c3a58c26
commit fe74c0bd64
3 changed files with 9 additions and 7 deletions

View file

@ -120,9 +120,10 @@ module Epp::Common
end
def write_to_epp_log
request_command = params[:command] || params[:action] # error receives :command, other methods receive :action
ApiLog::EppLog.create({
request: params[:raw_frame],
request_command: params[:action],
request: params[:raw_frame] || params[:frame],
request_command: request_command,
request_successful: epp_errors.empty?,
request_object: params[:epp_object_type], # TODO: fix this for login and logout
response: @response,