summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/puppet/parser')
-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