diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-14 14:02:44 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-14 14:02:44 -0200 |
commit | 823604ec1659109eedeb2db91de325d413c73452 (patch) | |
tree | ecfccc7d266bee0cb26fc223f51296df2bc431df /railties/test/application/middleware | |
parent | fa0d434e1b74bd2d2504bf3c925f9ace4161b11d (diff) | |
download | rails-823604ec1659109eedeb2db91de325d413c73452.tar.gz rails-823604ec1659109eedeb2db91de325d413c73452.tar.bz2 rails-823604ec1659109eedeb2db91de325d413c73452.zip |
Fix the TestCase class and make tests pass on ruby 2.0
Diffstat (limited to 'railties/test/application/middleware')
-rw-r--r-- | railties/test/application/middleware/static_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |