require 'test_helper' class EppDomainUpdateTest < ActionDispatch::IntegrationTest def test_discarded_domain_cannot_be_updated domains(:shop).discard request_xml = <<-XML shop.test XML post '/epp/command/update', { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames' assert_equal '2105', Nokogiri::XML(response.body).at_css('result')[:code] end end