summaryrefslogtreecommitdiffstats
path: root/test/rails
diff options
context:
space:
mode:
Diffstat (limited to 'test/rails')
-rwxr-xr-xtest/rails/configuration.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/test/rails/configuration.rb b/test/rails/configuration.rb
index 07665d576..277753945 100755
--- a/test/rails/configuration.rb
+++ b/test/rails/configuration.rb
@@ -51,19 +51,9 @@ class ConfigurationRailsTests < PuppetTest::TestCase
Puppet[:storeconfigs] = true
}
- file = tempfile()
- File.open(file, "w") { |f|
- f.puts "file { \"/etc\": owner => root }"
- }
+ Puppet[:code] = "file { \"/etc\": owner => root }"
- interp = nil
- assert_nothing_raised {
- interp = Puppet::Parser::Interpreter.new(
- :Manifest => file,
- :UseNodes => false,
- :ForkSave => false
- )
- }
+ interp = Puppet::Parser::Interpreter.new
facts = {}
Facter.each { |fact, val| facts[fact] = val }