# File test/test_auth.rb, line 96 def test_deny_no_auth @request.method = 'GET' @request.path = '/' @request.version = 'HTTP/1.1' done = false begin @doc.publish('', @request, @response, @logger) rescue Rucy::HTTPError assert_equal(401, $!.status) assert_equal('Basic realm="TestAuth"', $!.header('WWW-Authenticate')) assert_equal(0, @verify_call) assert_equal(0, @publish_call) done = true end assert(done) end