summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/chomp_spec.rb
diff options
context:
space:
mode:
authorKen Barber <ken@bob.sh>2011-06-30 01:00:32 +0200
committerKen Barber <ken@bob.sh>2011-06-30 01:00:32 +0200
commit1abf4b62fc8e97c7096c9da3d350e3e6268c5c72 (patch)
tree75d5ab5335884b5f0571f3995fe6af763f9c5f0e /spec/unit/parser/functions/chomp_spec.rb
parentc7c8647634df07f0de0e662360eb4567f7c20770 (diff)
Few more tests.
Diffstat (limited to 'spec/unit/parser/functions/chomp_spec.rb')
-rwxr-xr-xspec/unit/parser/functions/chomp_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/parser/functions/chomp_spec.rb b/spec/unit/parser/functions/chomp_spec.rb
index 150a7c8..0592115 100755
--- a/spec/unit/parser/functions/chomp_spec.rb
+++ b/spec/unit/parser/functions/chomp_spec.rb
@@ -18,4 +18,9 @@ describe "the chomp function" do
lambda { @scope.function_chomp([]) }.should( raise_error(Puppet::ParseError))
end
+ it "should chomp the end of a string" do
+ result = @scope.function_chomp(["abc\n"])
+ result.should(eq("abc"))
+ end
+
end