summaryrefslogtreecommitdiffstats
path: root/test/rails
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-05 14:25:29 -0500
committerLuke Kanies <luke@madstop.com>2007-10-05 14:25:29 -0500
commitf084d83df1abf51766e2dd390e118f1189864346 (patch)
treecbff216064768461dac362abab515c3f1ba6e349 /test/rails
parent9c58c476c2ffcf9613f14e5881b1177f01d413a7 (diff)
downloadpuppet-f084d83df1abf51766e2dd390e118f1189864346.tar.gz
puppet-f084d83df1abf51766e2dd390e118f1189864346.tar.xz
puppet-f084d83df1abf51766e2dd390e118f1189864346.zip
Another round of test-fixing around the changes I made
to the configuration system. 'puppet' itself still works, even with -e, but I expect that puppetd and puppetmasterd are broken, and there are still quite a few broken tests because the default fact store can't write but that's the default behaviour for a networked configuration master.
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 }