Skip to content

Commit

Permalink
Fix the TestCase class and make tests pass on ruby 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jan 14, 2013
1 parent fa0d434 commit 823604e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/test/application/middleware/static_test.rb
Expand Up @@ -3,7 +3,7 @@
require 'rack/test'

module ApplicationTests
class MiddlewareStaticTest < ActiveSupport::TestCase
class MiddlewareStaticTest < Test::Unit::TestCase
include ActiveSupport::Testing::Isolation
include Rack::Test::Methods

Expand All @@ -25,7 +25,7 @@ def teardown

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

0 comments on commit 823604e

Please sign in to comment.