Mon Jul 16 10:27:51 EST 2007 Matt Palmer * Fix the test suite to work with newer Rails, by not using @response.headers['location'] diff -rN -u old-bugfixes/test/ssl_requirement_test.rb new-bugfixes/test/ssl_requirement_test.rb --- old-bugfixes/test/ssl_requirement_test.rb 2008-10-20 23:31:06.796858137 +1100 +++ new-bugfixes/test/ssl_requirement_test.rb 2008-10-20 23:31:06.796858137 +1100 @@ -46,10 +46,10 @@ assert_not_equal "on", @request.env["HTTPS"] get :a assert_response :redirect - assert_match %r{^https://}, @response.headers['location'] + assert_match %r{^https://}, @response.redirected_to get :b assert_response :redirect - assert_match %r{^https://}, @response.headers['location'] + assert_match %r{^https://}, @response.redirected_to end def test_required_with_ssl @@ -70,7 +70,7 @@ @request.env['HTTPS'] = "on" get :d assert_response :redirect - assert_match %r{^http://}, @response.headers['location'] + assert_match %r{^http://}, @response.redirected_to end def test_allowed_without_ssl