diff options
| author | shadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-15 21:10:22 +0000 |
|---|---|---|
| committer | shadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-15 21:10:22 +0000 |
| commit | f622e18eff86d7a65e47cb6fd3ac07cceb5b3ecb (patch) | |
| tree | 94c98e6848e2cc419908af1993c63e08089300b3 /test | |
| parent | 9ad62d24093563e947d846fa3771bcebf550b8ee (diff) | |
| download | puppet-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')
| -rw-r--r-- | test/lib/puppettest/railstesting.rb | 2 | ||||
| -rwxr-xr-x | test/rails/railsresource.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/puppettest/railstesting.rb b/test/lib/puppettest/railstesting.rb index baac6e03a..1d2d94863 100644 --- a/test/lib/puppettest/railstesting.rb +++ b/test/lib/puppettest/railstesting.rb @@ -22,7 +22,7 @@ module PuppetTest::RailsTesting # Now build a resource resources = [] - resources << mkresource(:type => type, :title => title, :exported => true, + resources << mkresource(:restype => type, :title => title, :exported => true, :params => params) # Now collect our facts 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 |
