summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKen Barber <ken@bob.sh>2011-07-28 15:44:26 +0100
committerKen Barber <ken@bob.sh>2011-07-28 15:44:26 +0100
commit7efd6ec5819775226d669c15b58649d375f72959 (patch)
tree0c079e1a6d7480e9967547f786ca44178dfbe08f /spec
parenta55930368afe2e8177608472653c4696eccec92f (diff)
downloadpuppet-stdlib-7efd6ec5819775226d669c15b58649d375f72959.tar.gz
puppet-stdlib-7efd6ec5819775226d669c15b58649d375f72959.tar.bz2
(#1) - added new test for upcase.
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/parser/functions/upcase_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/parser/functions/upcase_spec.rb b/spec/unit/parser/functions/upcase_spec.rb
index 10e4c8a..5d18846 100644
--- a/spec/unit/parser/functions/upcase_spec.rb
+++ b/spec/unit/parser/functions/upcase_spec.rb
@@ -23,4 +23,9 @@ describe "the upcase function" do
result.should(eq('ABC'))
end
+ it "should do nothing if a string is already upcase" do
+ result = @scope.function_upcase(["ABC"])
+ result.should(eq('ABC'))
+ end
+
end