Hard code test data

#694
This commit is contained in:
Artur Beljajev 2018-02-17 02:42:22 +02:00
parent 709dba7664
commit 59ceb9c51a
4 changed files with 6 additions and 12 deletions

View file

@ -26,8 +26,7 @@ class EppDomainCreateTransferCodeTest < ActionDispatch::IntegrationTest
</epp>
XML
session_id = epp_sessions(:api_bestnames).session_id
post '/epp/command/create', { frame: request_xml }, { 'HTTP_COOKIE' => "session=#{session_id}" }
post '/epp/command/create', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_bestnames' }
refute_empty Domain.find_by(name: 'brandnew.test').transfer_code
end
@ -55,8 +54,7 @@ class EppDomainCreateTransferCodeTest < ActionDispatch::IntegrationTest
</epp>
XML
session_id = epp_sessions(:api_bestnames).session_id
post '/epp/command/create', { frame: request_xml }, { 'HTTP_COOKIE' => "session=#{session_id}" }
post '/epp/command/create', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_bestnames' }
assert_equal '1058ad73', Domain.find_by(name: 'brandnew.test').transfer_code
end
end