require 'test_helper' class EppDomainUpdateTest < ActionDispatch::IntegrationTest def test_overwrites_existing request_xml = <<-XML shop.test f0ff7d17b0 XML post '/epp/command/update', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_bestnames' } assert_equal 'f0ff7d17b0', domains(:shop).transfer_code end end