From dc5f4dc0d01dc2ccb4679afbf3802a7ab0f3c126 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 19 Dec 2006 02:08:11 +0000 Subject: Fixing most of the rails stuff. I think everything basically works now, and now I am just going through and making sure things get deleted when they are supposed (i.e., you remove a resource and it gets deleted from the host's config). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1950 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/lib/puppettest/railstesting.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/lib') diff --git a/test/lib/puppettest/railstesting.rb b/test/lib/puppettest/railstesting.rb index 1d2d94863..e2ce7ef3f 100644 --- a/test/lib/puppettest/railstesting.rb +++ b/test/lib/puppettest/railstesting.rb @@ -5,6 +5,9 @@ module PuppetTest::RailsTesting def railsinit Puppet::Rails.init + cleanup do + ActiveRecord::Base.clear_active_connections! + end end def railsteardown -- cgit