Fix tests for Puppet 3.0 target

This commit is contained in:
Paul Chechetin 2013-02-18 15:03:18 +04:00
parent ffc857d893
commit 90947afd2f

View file

@ -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