diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-04-04 16:14:13 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-04-04 16:14:13 -0300 |
commit | 1124ac00c9ac2f6dfc3d8fb28130e39bcaa42850 (patch) | |
tree | 770baed5017e0303027a2d7fc64062e51c28181a /activerecord/test/cases | |
parent | 6663dd0969595786d2d2d94f05fc93642d103e18 (diff) | |
download | rails-1124ac00c9ac2f6dfc3d8fb28130e39bcaa42850.tar.gz rails-1124ac00c9ac2f6dfc3d8fb28130e39bcaa42850.tar.bz2 rails-1124ac00c9ac2f6dfc3d8fb28130e39bcaa42850.zip |
Fix tests of benchmark with silence equals to true
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 300a3636e3..f6497d9bad 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1992,9 +1992,7 @@ class BasicsTest < ActiveRecord::TestCase original_logger = ActiveRecord::Base.logger log = StringIO.new ActiveRecord::Base.logger = Logger.new(log) - assert_deprecated do - ActiveRecord::Base.benchmark("Logging", :level => :debug, :silence => true) { ActiveRecord::Base.logger.debug "Loud" } - end + ActiveRecord::Base.benchmark("Logging", :level => :debug, :silence => true) { ActiveRecord::Base.logger.debug "Loud" } ActiveRecord::Base.benchmark("Logging", :level => :debug, :silence => false) { ActiveRecord::Base.logger.debug "Quiet" } assert_no_match(/Loud/, log.string) assert_match(/Quiet/, log.string) |