summaryrefslogtreecommitdiffstats
path: root/test/language/ast.rb
diff options
context:
space:
mode:
authorshadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-14 23:20:26 +0000
committershadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-14 23:20:26 +0000
commit8714e14c10492361cac62726a3c1abe44d9ec23f (patch)
tree007d3d0e5351222a4f49a3d6827b352c1421a538 /test/language/ast.rb
parent026ec4f3996655f01b85b03c6db79c9e15d035c5 (diff)
downloadpuppet-8714e14c10492361cac62726a3c1abe44d9ec23f.tar.gz
puppet-8714e14c10492361cac62726a3c1abe44d9ec23f.tar.xz
puppet-8714e14c10492361cac62726a3c1abe44d9ec23f.zip
New rails stuff redux.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1925 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/language/ast.rb')
-rwxr-xr-xtest/language/ast.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/language/ast.rb b/test/language/ast.rb
index d414a4f96..733ca4b36 100755
--- a/test/language/ast.rb
+++ b/test/language/ast.rb
@@ -458,7 +458,7 @@ class TestAST < Test::Unit::TestCase
# make a rails resource
railsresource "file", "/tmp/testing", :owner => "root", :group => "bin",
- :mode => "644"
+ :mode => "644"
run_collection_queries(:exported) do |string, result, query|
code = nil
@@ -487,8 +487,8 @@ class TestAST < Test::Unit::TestCase
end
end
assert_nothing_raised("Could not find resource") do
- retval = Puppet::Rails::RailsResource.find(:all,
- :include => :rails_parameters,
+ retval = Puppet::Rails::Resource.find(:all,
+ :include => :param_names,
:conditions => str)
end
@@ -496,7 +496,9 @@ class TestAST < Test::Unit::TestCase
assert_equal(1, retval.length, "Did not find resource with '#{string}'")
res = retval.shift
- assert_equal("file", res.restype)
+ # Not sure this is correct, maybe we need a case statement to convert to/from
+ # the autogenerated Puppet<Type> classes to <type>
+ assert_equal(PuppetFile, res.class)
assert_equal("/tmp/testing", res.title)
else
assert_equal(0, retval.length, "found a resource with '#{string}'")