summaryrefslogtreecommitdiffstats
path: root/test/rails/rails.rb
diff options
context:
space:
mode:
authorshadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-09 18:57:01 +0000
committershadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-09 18:57:01 +0000
commitcf166c25911f521cdf12178ebbe0b39f81473b35 (patch)
tree1a96094de1203cb3d48b6c07255414bea351092a /test/rails/rails.rb
parent28c283c73388c3f76e1d715c41ebd82ac35ca9a4 (diff)
downloadpuppet-cf166c25911f521cdf12178ebbe0b39f81473b35.tar.gz
puppet-cf166c25911f521cdf12178ebbe0b39f81473b35.tar.xz
puppet-cf166c25911f521cdf12178ebbe0b39f81473b35.zip
Rails stuff part 1
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1837 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/rails/rails.rb')
-rwxr-xr-xtest/rails/rails.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/rails/rails.rb b/test/rails/rails.rb
index 8be1bc66d..699d132a2 100755
--- a/test/rails/rails.rb
+++ b/test/rails/rails.rb
@@ -60,13 +60,14 @@ class TestRails < Test::Unit::TestCase
}
assert(host, "Could not find host object")
- assert(host.rails_resources, "No objects on host")
+ assert(host.resources, "No objects on host")
- assert_equal(facts["hostname"], host.facts["hostname"],
+ # This changed from a hash to a method call, hope that doesn't break anything!
+ assert_equal(facts["hostname"], host.facts("hostname"),
"Did not retrieve facts")
count = 0
- host.rails_resources.each do |resource|
+ host.resources.each do |resource|
count += 1
i = nil
if resource[:title] =~ /file([0-9]+)/
@@ -74,9 +75,7 @@ class TestRails < Test::Unit::TestCase
else
raise "Got weird resource %s" % resource.inspect
end
-
- assert_equal("user#{i}",
- resource.rails_parameters.find_by_name("owner")[:value])
+ assert_equal("user#{i}", resource.parameters[:owner])
end
assert_equal(20, count, "Did not get enough resources")