From 1fb4cbd86fc67e2b231d8b767d857ae50b7d9b5c Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Sun, 15 Sep 2019 21:13:59 +0300 Subject: [PATCH] Add test --- test/integration/epp/hello_test.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/integration/epp/hello_test.rb diff --git a/test/integration/epp/hello_test.rb b/test/integration/epp/hello_test.rb new file mode 100644 index 0000000000..1ccb65ff0a --- /dev/null +++ b/test/integration/epp/hello_test.rb @@ -0,0 +1,17 @@ +require 'test_helper' + +class EppHelloTest < EppTestCase + def test_anonymous_user_is_able_to_access + request_xml = <<-XML + + + + + XML + + get '/epp/session/hello', { frame: request_xml }, 'HTTP_COOKIE' => 'session=non-existent' + + response_xml = Nokogiri::XML(response.body) + assert_equal 'EPP server (EIS)', response_xml.at_css('greeting > svID').text + end +end