diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-10 06:01:03 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-10 06:01:03 +0000 |
commit | 9f8849e81a34a2cf5d81a1c5fdea2aa9d51aa63d (patch) | |
tree | dbf2d02c6ad3a1ecaf6a1f0a1559d827bf7bc1f0 /test/language/parser.rb | |
parent | 10634d69c654686d05f34a39e1ba1c603a13a3cb (diff) | |
download | puppet-9f8849e81a34a2cf5d81a1c5fdea2aa9d51aa63d.tar.gz puppet-9f8849e81a34a2cf5d81a1c5fdea2aa9d51aa63d.tar.xz puppet-9f8849e81a34a2cf5d81a1c5fdea2aa9d51aa63d.zip |
Mostly small changes toward 0.20.1
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1852 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/language/parser.rb')
-rwxr-xr-x | test/language/parser.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/language/parser.rb b/test/language/parser.rb index fa87dc6f5..fe45d5adb 100755 --- a/test/language/parser.rb +++ b/test/language/parser.rb @@ -438,14 +438,19 @@ file { "/tmp/yayness": end check = proc do |res| + if res.is_a?(Puppet::Parser::Resource) + txt = res.ref + else + txt = res.class + end # Real resources get marked virtual when exported if form == :virtual or res.is_a?(Puppet::Parser::Resource) - assert(res.virtual, "Resource #{res.class} is not virtual") + assert(res.virtual, "Resource #{txt} is not virtual") end if form == :virtual - assert(! res.exported, "Resource #{res.type} is exported") + assert(! res.exported, "Resource #{txt} is exported") else - assert(res.exported, "Resource #{res.type} is not exported") + assert(res.exported, "Resource #{txt} is not exported") end end |