test/nitro/cgi/tc_request.rb in nitro-0.29.0 vs test/nitro/cgi/tc_request.rb in nitro-0.30.0

- old
+ new

@@ -1,6 +1,6 @@ -$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib') +require File.join(File.dirname(__FILE__), '..', 'CONFIG.rb') require 'test/unit' require 'nitro/cgi/request' @@ -14,15 +14,15 @@ end def test_all req = DummyRequest.new - req.headers['HTTP_HOST'] = 'www.nitrohq.com' - assert_equal 'nitrohq.com', req.domain + req.headers['HTTP_HOST'] = 'www.nitroproject.org' + assert_equal 'nitroproject.org', req.domain assert_equal 'www', req.subdomains.first - req.headers['HTTP_HOST'] = 'www.nitrohq.co.uk' - assert_equal 'nitrohq.co.uk', req.domain(2) + req.headers['HTTP_HOST'] = 'www.nitroproject.co.uk' + assert_equal 'nitroproject.co.uk', req.domain(2) req.headers['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest' assert req.xhr? req.headers['REQUEST_METHOD'] = 'POST'