summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-04-14 17:53:49 -0500
committerJames Turnbull <james@lovedthanlost.net>2009-04-22 14:39:39 +1000
commit5cb0f76f3ccb0b179de5f2735749ff91ae7346cc (patch)
treef3f2bb61fea47881c4dfaa7398168a5dc015e338
parentbdbf9db5f0c0d30e554f274591b24692b866ca29 (diff)
downloadpuppet-5cb0f76f3ccb0b179de5f2735749ff91ae7346cc.tar.gz
puppet-5cb0f76f3ccb0b179de5f2735749ff91ae7346cc.tar.xz
puppet-5cb0f76f3ccb0b179de5f2735749ff91ae7346cc.zip
Fixing some rails tests that sometimes failed
At least, I think they're fixed; it's hard to test. Signed-off-by: Luke Kanies <luke@madstop.com>
-rwxr-xr-xspec/unit/rails.rb1
1 files changed, 1 insertions, 0 deletions
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