summaryrefslogtreecommitdiffstats
path: root/spec/unit/util
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2011-01-04 16:04:34 -0800
committerNick Lewis <nick@puppetlabs.com>2011-01-04 16:04:34 -0800
commita05df9fec9040a908f28e4c324845ec80daa54eb (patch)
tree489df98ee50d6ac6cf01fb905e78bd4864cde2c0 /spec/unit/util
parentac114371fc161a48fc48bf68944846a1defbc6c4 (diff)
parent52760a4fb2764d011609c82adb68cc61d0772dc4 (diff)
downloadpuppet-a05df9fec9040a908f28e4c324845ec80daa54eb.tar.gz
puppet-a05df9fec9040a908f28e4c324845ec80daa54eb.tar.xz
puppet-a05df9fec9040a908f28e4c324845ec80daa54eb.zip
Merge branch 'ticket/2.6.next/upgrade_rspec' into 2.6.next
Diffstat (limited to 'spec/unit/util')
-rwxr-xr-xspec/unit/util/queue/stomp_spec.rb8
-rwxr-xr-xspec/unit/util/settings/file_setting_spec.rb4
2 files changed, 3 insertions, 9 deletions
diff --git a/spec/unit/util/queue/stomp_spec.rb b/spec/unit/util/queue/stomp_spec.rb
index 9f1d28448..c33f1a670 100755
--- a/spec/unit/util/queue/stomp_spec.rb
+++ b/spec/unit/util/queue/stomp_spec.rb
@@ -3,18 +3,14 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'puppet/util/queue'
-describe Puppet::Util::Queue do
- confine "Missing Stomp" => Puppet.features.stomp?
-
+describe Puppet::Util::Queue, :if => Puppet.features.stomp? do
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'
end
end
-describe 'Puppet::Util::Queue::Stomp' do
- confine "Missing Stomp" => Puppet.features.stomp?
-
+describe 'Puppet::Util::Queue::Stomp', :if => Puppet.features.stomp? do
before do
# So we make sure we never create a real client instance.
# Otherwise we'll try to connect, and that's bad.
diff --git a/spec/unit/util/settings/file_setting_spec.rb b/spec/unit/util/settings/file_setting_spec.rb
index 2870fbb57..dcfb6e3b1 100755
--- a/spec/unit/util/settings/file_setting_spec.rb
+++ b/spec/unit/util/settings/file_setting_spec.rb
@@ -146,9 +146,7 @@ describe Puppet::Util::Settings::FileSetting do
@file.to_resource.should be_instance_of(Puppet::Resource)
end
- describe "on POSIX systems" do
- confine "no /dev on Microsoft Windows" => Puppet.features.posix?
-
+ describe "on POSIX systems", :if => Puppet.features.posix? do
it "should skip files in /dev" do
@settings.stubs(:value).with(:mydir).returns "/dev/file"
@file.to_resource.should be_nil