test/language/parser.rb in puppet-2.6.0 vs test/language/parser.rb in puppet-2.6.1
- old
+ new
@@ -95,11 +95,11 @@
File.open(manifest, "w") { |f|
f.puts "import \"%s/*\"" % subdir
}
4.times { |i|
- path = File.join(basedir, subdir, "subfile#{i}")
+ path = File.join(basedir, subdir, "subfile#{i}.pp")
mkmanifest(path)
}
assert_nothing_raised("Could not parse multiple files") {
parser = mkparser
@@ -135,12 +135,12 @@
parser.parse
}
end
def test_importedclasses
- imported = tempfile
- importer = tempfile
+ imported = tempfile '.pp'
+ importer = tempfile '.pp'
made = tempfile
File.open(imported, "w") do |f|
f.puts %{class foo { file { "#{made}": ensure => file }}}
@@ -653,12 +653,12 @@
parser.parse %{Foo::Bar <||>}
}
end
def test_multiple_imports_on_one_line
- one = tempfile
- two = tempfile
- base = tempfile
+ one = tempfile '.pp'
+ two = tempfile '.pp'
+ base = tempfile '.pp'
File.open(one, "w") { |f| f.puts "$var = value" }
File.open(two, "w") { |f| f.puts "$var = value" }
File.open(base, "w") { |f| f.puts "import '#{one}', '#{two}'" }
parser = mkparser