summaryrefslogtreecommitdiffstats
path: root/test/rails/rails.rb
diff options
context:
space:
mode:
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")