From 5cb0f76f3ccb0b179de5f2735749ff91ae7346cc Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 14 Apr 2009 17:53:49 -0500 Subject: Fixing some rails tests that sometimes failed At least, I think they're fixed; it's hard to test. Signed-off-by: Luke Kanies --- spec/unit/rails.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/unit/rails.rb b/spec/unit/rails.rb index 48e0ab321..ab862a719 100755 --- a/spec/unit/rails.rb +++ b/spec/unit/rails.rb @@ -13,6 +13,7 @@ describe Puppet::Rails, "when initializing any connection" do Logger.stubs(:new).returns(@logger) ActiveRecord::Base.stubs(:logger).returns(@logger) + ActiveRecord::Base.stubs(:connected?).returns(false) end it "should use settings" do -- cgit