summaryrefslogtreecommitdiffstats
path: root/spec/integration/indirector
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-08-10 04:10:51 +0000
committerJames Turnbull <james@lovedthanlost.net>2009-08-10 17:39:39 +1000
commitacc5a964738871539cf38675ad3b56d512d3c860 (patch)
tree889e28cb104c04ce11eafa6c65277269fd317d1a /spec/integration/indirector
parent1a5c5b3fdbcf705d1fcd16f8f26e2b0f85b9e160 (diff)
downloadpuppet-acc5a964738871539cf38675ad3b56d512d3c860.tar.gz
puppet-acc5a964738871539cf38675ad3b56d512d3c860.tar.xz
puppet-acc5a964738871539cf38675ad3b56d512d3c860.zip
Fixing #2489 - queue integration tests are skipped w/out json
All of the tests were failing because we had a call outside of any of the tests, just to autoload the constant. Removed that call and stubbed things so the tests don't run without json. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/integration/indirector')
-rwxr-xr-xspec/integration/indirector/catalog/queue.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/integration/indirector/catalog/queue.rb b/spec/integration/indirector/catalog/queue.rb
index 22f29aac3..bf121811c 100755
--- a/spec/integration/indirector/catalog/queue.rb
+++ b/spec/integration/indirector/catalog/queue.rb
@@ -4,10 +4,12 @@ Dir.chdir(File.dirname(__FILE__)) { (s = lambda { |f| File.exist?(f) ? require(f
require 'puppet/resource/catalog'
-Puppet::Resource::Catalog.indirection.terminus(:queue)
-describe Puppet::Resource::Catalog::Queue do
+describe "Puppet::Resource::Catalog::Queue" do
+ confine "Missing json support; cannot test queue" => Puppet.features.json?
+
before do
+ Puppet::Resource::Catalog.indirection.terminus(:queue)
@catalog = Puppet::Resource::Catalog.new
@one = Puppet::Resource.new(:file, "/one")