From 823604ec1659109eedeb2db91de325d413c73452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 14 Jan 2013 14:02:44 -0200 Subject: Fix the TestCase class and make tests pass on ruby 2.0 --- railties/test/application/middleware/static_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/test/application/middleware/static_test.rb') diff --git a/railties/test/application/middleware/static_test.rb b/railties/test/application/middleware/static_test.rb index 0a793f8f60..82ee1b8360 100644 --- a/railties/test/application/middleware/static_test.rb +++ b/railties/test/application/middleware/static_test.rb @@ -3,7 +3,7 @@ require 'isolation/abstract_unit' require 'rack/test' module ApplicationTests - class MiddlewareStaticTest < ActiveSupport::TestCase + class MiddlewareStaticTest < Test::Unit::TestCase include ActiveSupport::Testing::Isolation include Rack::Test::Methods @@ -25,7 +25,7 @@ module ApplicationTests get 'foo' - assert_not last_response.headers.has_key?('Cache-Control'), "Cache-Control should not be set" + assert !last_response.headers.has_key?('Cache-Control'), "Cache-Control should not be set" end end end -- cgit v1.2.3