summaryrefslogtreecommitdiffstats
path: root/spec/unit/rails.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/rails.rb')
-rwxr-xr-xspec/unit/rails.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/rails.rb b/spec/unit/rails.rb
index f0ba2b942..48e0ab321 100755
--- a/spec/unit/rails.rb
+++ b/spec/unit/rails.rb
@@ -7,7 +7,8 @@ describe Puppet::Rails, "when initializing any connection" do
confine "Cannot test without ActiveRecord" => Puppet.features.rails?
before do
- @logger = stub 'logger', :level= => nil
+ Puppet.settings.stubs(:use)
+ @logger = mock 'logger'
@logger.stub_everything
Logger.stubs(:new).returns(@logger)