diff options
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 |
