diff options
author | shadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-15 00:05:34 +0000 |
---|---|---|
committer | shadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-15 00:05:34 +0000 |
commit | 56098cad3fd22d0385481ad7af02771d60c85580 (patch) | |
tree | 1ec6a658df6fdb7205ec45bb8b2cd648db9f0976 /test/rails/rails.rb | |
parent | b5fd82260d5cd05e594c6adf87f1c1017ecf07fe (diff) | |
download | puppet-56098cad3fd22d0385481ad7af02771d60c85580.tar.gz puppet-56098cad3fd22d0385481ad7af02771d60c85580.tar.xz puppet-56098cad3fd22d0385481ad7af02771d60c85580.zip |
Rename some stuff I missed when it was reverted
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1928 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/rails/rails.rb')
-rwxr-xr-x | test/rails/rails.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/rails/rails.rb b/test/rails/rails.rb index 8c5e37287..381150be3 100755 --- a/test/rails/rails.rb +++ b/test/rails/rails.rb @@ -26,6 +26,7 @@ class TestRails < Test::Unit::TestCase # Don't do any tests w/out this class if defined? ActiveRecord::Base def test_hostcache + railsinit @interp, @scope, @source = mkclassframing # First make some objects resources = [] @@ -61,13 +62,13 @@ 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"], + 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]+)/ |