blob: f5666f2c447abb1ad5a37615b23790efa80ebc83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
module PuppetTest::RailsTesting
Parser = Puppet::Parser
AST = Puppet::Parser::AST
include PuppetTest::ParserTesting
def teardown
super
# If we don't clean up the connection list, then the rails
# lib will still think it's connected.
ActiveRecord::Base.clear_active_connections! if Puppet.features.rails?
end
def railsinit
Puppet::Rails.init
end
end
|