Fix tests for Puppet 3.0 target
This commit is contained in:
parent
ffc857d893
commit
90947afd2f
1 changed files with 5 additions and 1 deletions
|
@ -7,7 +7,11 @@ describe "the mysql_password function" do
|
|||
end
|
||||
|
||||
before :each do
|
||||
@scope = Puppet::Parser::Scope.new
|
||||
@scope = if Puppet.version =~ /^3/
|
||||
Puppet::Parser::Scope.new_for_test_harness('localhost')
|
||||
else
|
||||
Puppet::Parser::Scope.new
|
||||
end
|
||||
end
|
||||
|
||||
it "should exist" do
|
||||
|
|
Loading…
Reference in a new issue