Remove annoying constant warning from resque spec
This commit is contained in:
parent
0b1fa4d014
commit
44ca687100
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ describe ResqueJobLogging do
|
||||||
Rails.stub!(:logger).and_return(mock())
|
Rails.stub!(:logger).and_return(mock())
|
||||||
Rails.logger.should_receive(:auto_flushing=).with(1)
|
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)
|
ResqueJobLoggingDummy.extend(ResqueJobLogging)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue