Skip to content
Browse files

Fix tests for Puppet 3.0 target

  • Loading branch information...
1 parent ffc857d commit 90947afd2fe42dcfc63253e788596991ad275a1a @Paulche Paulche committed Feb 18, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/unit/mysql_password_spec.rb
View
6 spec/unit/mysql_password_spec.rb
@@ -7,7 +7,11 @@
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

0 comments on commit 90947af

Please sign in to comment.
Something went wrong with that request. Please try again.