summaryrefslogtreecommitdiffstats
path: root/test/rails/railsresource.rb
diff options
context:
space:
mode:
authorshadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-15 21:10:22 +0000
committershadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-15 21:10:22 +0000
commitf622e18eff86d7a65e47cb6fd3ac07cceb5b3ecb (patch)
tree94c98e6848e2cc419908af1993c63e08089300b3 /test/rails/railsresource.rb
parent9ad62d24093563e947d846fa3771bcebf550b8ee (diff)
downloadpuppet-f622e18eff86d7a65e47cb6fd3ac07cceb5b3ecb.tar.gz
puppet-f622e18eff86d7a65e47cb6fd3ac07cceb5b3ecb.tar.xz
puppet-f622e18eff86d7a65e47cb6fd3ac07cceb5b3ecb.zip
Go back to restype and remove STI classes, they were more trouble than they were worth.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1940 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/rails/railsresource.rb')
-rwxr-xr-xtest/rails/railsresource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rails/railsresource.rb b/test/rails/railsresource.rb
index f16f925a8..36df881ca 100755
--- a/test/rails/railsresource.rb
+++ b/test/rails/railsresource.rb
@@ -24,11 +24,11 @@ class TestRailsResource < Test::Unit::TestCase
# Now build a resource
resource = host.resources.create(
:title => "/tmp/to_resource",
+ :restype => "file",
:exported => true)
# For some reason the child class doesn't exist until after the resource is created.
# Probably an issue with the dynamic class generation.
- resource.type = "PuppetFile"
resource.save
# Now add some params