summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2014-12-09 15:43:05 +0100
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2014-12-09 15:43:05 +0100
commit1d1bab299473365788deef074e50167c1e082c0f (patch)
treeb082c89a824e1e87f619827baf07260dd6dd4963 /spec/unit
parent2ab024ab14bdf831233d727f55d0a3cc0cf5e5b3 (diff)
Convert specs to rspec3 syntax
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/puppet/parser/functions/augeas_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/puppet/parser/functions/augeas_spec.rb b/spec/unit/puppet/parser/functions/augeas_spec.rb
index 9c48773..b34fa5b 100644
--- a/spec/unit/puppet/parser/functions/augeas_spec.rb
+++ b/spec/unit/puppet/parser/functions/augeas_spec.rb
@@ -10,7 +10,7 @@ describe 'the augeas function' do
end
it "should exist" do
- Puppet::Parser::Functions.function("augeas").should == "function_augeas"
+ expect(Puppet::Parser::Functions.function("augeas")).to eq("function_augeas")
end
context "when passing wrong arguments" do
@@ -57,13 +57,13 @@ describe 'the augeas function' do
context "when applying valid changes" do
it "should remove the 3rd option" do
result = scope.function_augeas(["proc /proc proc nodev,noexec,nosuid 0 0\n", 'Fstab.lns', ['rm ./1/opt[3]']])
- result.class.should == String
+ expect(result.class).to eq(String)
#result.should == "proc /proc proc nodev,noexec 0 0\n"
end
it "should set a 4th option" do
result = scope.function_augeas(["proc /proc proc nodev,noexec,nosuid 0 0\n", 'Fstab.lns', ['ins opt after ./1/opt[last()]', 'set ./1/opt[last()] nofoo']])
- result.class.should == String
+ expect(result.class).to eq(String)
#result.should == "proc /proc proc nodev,noexec,nosuid,nofoo 0 0\n"
end
end