summaryrefslogtreecommitdiffstats
path: root/test/language
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-01 21:08:45 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-01 21:08:45 +0000
commit3b2521b3cc3b647c7c421bf1d93d5967234e8676 (patch)
tree1f287e818b60ba9620387e38e13833efbb8f7763 /test/language
parent54a838e68e52b2eac353d70cb9281ca75d741839 (diff)
downloadpuppet-3b2521b3cc3b647c7c421bf1d93d5967234e8676.tar.gz
puppet-3b2521b3cc3b647c7c421bf1d93d5967234e8676.tar.xz
puppet-3b2521b3cc3b647c7c421bf1d93d5967234e8676.zip
Fixing graphing tests, and correctly only using storeconfigs in tests where rails is available
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2009 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/language')
-rwxr-xr-xtest/language/parser.rb19
1 files changed, 14 insertions, 5 deletions
diff --git a/test/language/parser.rb b/test/language/parser.rb
index e2e38ace3..bb07d55e8 100755
--- a/test/language/parser.rb
+++ b/test/language/parser.rb
@@ -266,7 +266,6 @@ class TestParser < Test::Unit::TestCase
# Verify that we can parse collections
def test_collecting
- Puppet[:storeconfigs] = true
text = "Port <| |>"
parser = mkparser
parser.string = text
@@ -427,8 +426,13 @@ file { "/tmp/yayness":
# Make sure virtual and exported resources work appropriately.
def test_virtualresources
- Puppet[:storeconfigs] = true
- [:virtual, :exported].each do |form|
+ tests = [:virtual]
+ if Puppet.features.rails?
+ Puppet[:storeconfigs] = true
+ tests << :exported
+ end
+
+ tests.each do |form|
parser = mkparser
if form == :virtual
@@ -495,8 +499,13 @@ file { "/tmp/yayness":
end
def test_collections
- Puppet[:storeconfigs] = true
- [:virtual, :exported].each do |form|
+ tests = [:virtual]
+ if Puppet.features.rails?
+ Puppet[:storeconfigs] = true
+ tests << :exported
+ end
+
+ tests.each do |form|
parser = mkparser
if form == :virtual