summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-29 11:51:15 -0600
committerLuke Kanies <luke@madstop.com>2008-02-29 11:51:15 -0600
commit857814ac80cf4f0c9913ccb6d2d42355670ea64f (patch)
tree203409b7f49fa17738c265f6917ffa04a19dda1d
parent7ca0ad64f486c5dc50513e6d06c8e0725ce4f7f8 (diff)
downloadpuppet-857814ac80cf4f0c9913ccb6d2d42355670ea64f.tar.gz
puppet-857814ac80cf4f0c9913ccb6d2d42355670ea64f.tar.xz
puppet-857814ac80cf4f0c9913ccb6d2d42355670ea64f.zip
Fixing tests that did not work with Rails 2.
-rwxr-xr-xtest/rails/railsparameter.rb2
-rwxr-xr-xtest/rails/railsresource.rb1
2 files changed, 3 insertions, 0 deletions
diff --git a/test/rails/railsparameter.rb b/test/rails/railsparameter.rb
index d83115b1a..7c99ac38d 100755
--- a/test/rails/railsparameter.rb
+++ b/test/rails/railsparameter.rb
@@ -25,6 +25,8 @@ class TestRailsParameter < Test::Unit::TestCase
source = parser.newclass "myclass"
host = Puppet::Rails::Host.new(:name => "myhost")
+
+ host.save
resource = host.resources.create(
:title => "/tmp/to_resource",
diff --git a/test/rails/railsresource.rb b/test/rails/railsresource.rb
index 58058472d..3df5001be 100755
--- a/test/rails/railsresource.rb
+++ b/test/rails/railsresource.rb
@@ -29,6 +29,7 @@ class TestRailsResource < Test::Unit::TestCase
def mktest_resource
# We need a host for resources
host = Puppet::Rails::Host.new(:name => "myhost")
+ host.save
# Now build a resource
resource = host.resources.create(