summaryrefslogtreecommitdiff
path: root/spec/unit/facter/util/puppet_settings_spec.rb
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2014-06-05 16:16:34 -0400
committerMorgan Haskel <morgan@puppetlabs.com>2014-06-05 16:16:34 -0400
commitffe21fc67491c4502114505c82142781d72720ab (patch)
tree7f0ee09079863a19f07e0bb999e387eedb32e17e /spec/unit/facter/util/puppet_settings_spec.rb
parentf9f6e92dffa8364cfbbd92a6a65f4be4ef176d2c (diff)
parent6287a200af558d277f83b919e8409f6c798eef39 (diff)
downloadpuppet-stdlib-ffe21fc67491c4502114505c82142781d72720ab.tar.gz
puppet-stdlib-ffe21fc67491c4502114505c82142781d72720ab.tar.bz2
Merge pull request #268 from apenney/rspec3
Rspec3 changes
Diffstat (limited to 'spec/unit/facter/util/puppet_settings_spec.rb')
-rwxr-xr-xspec/unit/facter/util/puppet_settings_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/facter/util/puppet_settings_spec.rb b/spec/unit/facter/util/puppet_settings_spec.rb
index e77779b..c06137d 100755
--- a/spec/unit/facter/util/puppet_settings_spec.rb
+++ b/spec/unit/facter/util/puppet_settings_spec.rb
@@ -11,11 +11,11 @@ describe Facter::Util::PuppetSettings do
end
it 'should be nil' do
- subject.with_puppet { Puppet[:vardir] }.should be_nil
+ expect(subject.with_puppet { Puppet[:vardir] }).to be_nil
end
it 'should not yield to the block' do
Puppet.expects(:[]).never
- subject.with_puppet { Puppet[:vardir] }.should be_nil
+ expect(subject.with_puppet { Puppet[:vardir] }).to be_nil
end
end
context "With Puppet loaded" do
@@ -29,7 +29,7 @@ describe Facter::Util::PuppetSettings do
subject.with_puppet { Puppet[:vardir] }
end
it 'should return the nodes vardir' do
- subject.with_puppet { Puppet[:vardir] }.should eq vardir
+ expect(subject.with_puppet { Puppet[:vardir] }).to eq vardir
end
end
end