From 44ca687100f157bcc5bbab6960c16c8d6dbb9542 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 19 Mar 2011 21:12:43 -0700 Subject: [PATCH] Remove annoying constant warning from resque spec --- spec/lib/resque_job_logging_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/resque_job_logging_spec.rb b/spec/lib/resque_job_logging_spec.rb index a3a60d454..ed7997d32 100644 --- a/spec/lib/resque_job_logging_spec.rb +++ b/spec/lib/resque_job_logging_spec.rb @@ -9,7 +9,7 @@ describe ResqueJobLogging do Rails.stub!(:logger).and_return(mock()) Rails.logger.should_receive(:auto_flushing=).with(1) - Object.const_set("ResqueJobLoggingDummy", Class.new(Object)) + silence_warnings { Object.const_set("ResqueJobLoggingDummy", Class.new(Object)) } ResqueJobLoggingDummy.extend(ResqueJobLogging) end