require 'test_helper' class EppDomainTransferTransferCodeTest < ActionDispatch::IntegrationTest def test_wrong request_xml = <<-XML shop.test wrong XML post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_goodnames' } refute_equal registrars(:goodnames), domains(:shop).registrar assert_equal '2201', Nokogiri::XML(response.body).at_css('result')[:code] end end