summaryrefslogtreecommitdiff
path: root/spec/functions/chomp_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functions/chomp_spec.rb')
-rwxr-xr-xspec/functions/chomp_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functions/chomp_spec.rb b/spec/functions/chomp_spec.rb
index e425365..d2ae287 100755
--- a/spec/functions/chomp_spec.rb
+++ b/spec/functions/chomp_spec.rb
@@ -5,15 +5,15 @@ describe "the chomp function" do
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
- Puppet::Parser::Functions.function("chomp").should == "function_chomp"
+ expect(Puppet::Parser::Functions.function("chomp")).to eq("function_chomp")
end
it "should raise a ParseError if there is less than 1 arguments" do
- lambda { scope.function_chomp([]) }.should( raise_error(Puppet::ParseError))
+ expect { scope.function_chomp([]) }.to( raise_error(Puppet::ParseError))
end
it "should chomp the end of a string" do
result = scope.function_chomp(["abc\n"])
- result.should(eq("abc"))
+ expect(result).to(eq("abc"))
end
end