Permalink
Browse files

Fix GH #4580. Rails 3.2: uninitialized constant ActiveSupport::Tagged…

…Logging::ERROR
  • Loading branch information...
kennyj committed Jan 21, 2012
1 parent c701358 commit caf78564c295e2a8c0326b8eb864f35d4f873f26
@@ -27,7 +27,7 @@ def tagged(*new_tags)
new_tags.size.times { tags.pop }
end
- def silence(temporary_level = ERROR, &block)
+ def silence(temporary_level = Logger::ERROR, &block)
@logger.silence(temporary_level, &block)
end
deprecate :silence
@@ -64,4 +64,8 @@ def flush(*)
assert_equal "[BCX] [Jason] Funky time\n[BCX] Junky time!\n", @output.string
end
+
+ test "silence" do
+ assert_nothing_raised { @logger.silence {} }
+ end
end

0 comments on commit caf7856

Please sign in to comment.