From 35de0e3bd74e94de92ac0e9209a4884cf07c88a0 Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 13 Nov 2006 07:49:48 +0000 Subject: Temporarily reverting all of the recent rails work so that I can release 0.20.1 git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1873 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/lib/puppettest/railstesting.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/lib') diff --git a/test/lib/puppettest/railstesting.rb b/test/lib/puppettest/railstesting.rb index e3b472b4f..3a32d0c9e 100644 --- a/test/lib/puppettest/railstesting.rb +++ b/test/lib/puppettest/railstesting.rb @@ -14,14 +14,16 @@ module PuppetTest::RailsTesting host = Puppet::Rails::Host.new(:name => Facter.value("hostname")) # Now build a resource - resource = host.resources.build( - :title => title, :exported => true + resource = host.rails_resources.build( + :title => title, :restype => type, + :exported => true ) # Now add some params params.each do |param, value| - pvalue = ParamValue.new(:value => value) - resource.param_name.find_or_create_by_name(param).param_values << pvalue + resource.rails_parameters.build( + :name => param, :value => value + ) end # Now save the whole thing -- cgit