summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2009-04-30 22:30:35 +0200
committerJames Turnbull <james@lovedthanlost.net>2009-05-15 09:56:58 +1000
commit17f2c7d1255d79a79060ca93f9d73642a804ed10 (patch)
treef6bd1c1035f9109e8705475e9c4c8ed0f6c67d7e /spec
parent6a80b764ef2ac3bad5d7ecdf29aafd9e17887fe1 (diff)
downloadpuppet-17f2c7d1255d79a79060ca93f9d73642a804ed10.tar.gz
puppet-17f2c7d1255d79a79060ca93f9d73642a804ed10.tar.xz
puppet-17f2c7d1255d79a79060ca93f9d73642a804ed10.zip
Confine stomp tests to Stomp enabled systems
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/util/queue/stomp.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/util/queue/stomp.rb b/spec/unit/util/queue/stomp.rb
index c4d8b7672..b0b86e4af 100755
--- a/spec/unit/util/queue/stomp.rb
+++ b/spec/unit/util/queue/stomp.rb
@@ -4,6 +4,8 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
require 'puppet/util/queue'
describe Puppet::Util::Queue do
+ confine "Missing Stomp" => Puppet.features.stomp?
+
it 'should load :stomp client appropriately' do
Puppet.settings.stubs(:value).returns 'faux_queue_source'
Puppet::Util::Queue.queue_type_to_class(:stomp).name.should == 'Puppet::Util::Queue::Stomp'
@@ -11,6 +13,8 @@ describe Puppet::Util::Queue do
end
describe 'Puppet::Util::Queue::Stomp' do
+ confine "Missing Stomp" => Puppet.features.stomp?
+
before :all do
class Stomp::Client
include Mocha::Standalone