diff options
author | shadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-09 18:57:01 +0000 |
---|---|---|
committer | shadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-09 18:57:01 +0000 |
commit | cf166c25911f521cdf12178ebbe0b39f81473b35 (patch) | |
tree | 1a96094de1203cb3d48b6c07255414bea351092a /test/rails/rails.rb | |
parent | 28c283c73388c3f76e1d715c41ebd82ac35ca9a4 (diff) | |
download | puppet-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-x | test/rails/rails.rb | 11 |
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") |