diff options
Diffstat (limited to 'spec/unit/rails.rb')
-rwxr-xr-x | spec/unit/rails.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/rails.rb b/spec/unit/rails.rb index ae7ea9f95..4a4667543 100755 --- a/spec/unit/rails.rb +++ b/spec/unit/rails.rb @@ -9,8 +9,9 @@ describe Puppet::Rails, "when initializing any connection" do before do @logger = stub 'logger', :level= => nil @logger.stub_everything + Logger.stubs(:new).returns(@logger) - Logger.stubs(:new).returns @logger + ActiveRecord::Base.stubs(:logger).returns(@logger) end it "should use settings" do |