summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-13 07:49:48 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-13 07:49:48 +0000
commit35de0e3bd74e94de92ac0e9209a4884cf07c88a0 (patch)
treebe7119181bc15dad6575cc5b7087c92cfd7fbac8 /test/lib
parent26b32b953d8e097785b38aa90e5e4bff6ae9247e (diff)
downloadpuppet-35de0e3bd74e94de92ac0e9209a4884cf07c88a0.tar.gz
puppet-35de0e3bd74e94de92ac0e9209a4884cf07c88a0.tar.xz
puppet-35de0e3bd74e94de92ac0e9209a4884cf07c88a0.zip
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
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/puppettest/railstesting.rb10
1 files changed, 6 insertions, 4 deletions
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