]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
(#1) - added new test for upcase.
authorKen Barber <ken@bob.sh>
Thu, 28 Jul 2011 14:44:26 +0000 (15:44 +0100)
committerKen Barber <ken@bob.sh>
Thu, 28 Jul 2011 14:44:26 +0000 (15:44 +0100)
spec/unit/parser/functions/upcase_spec.rb

index 10e4c8a68f649ae829bc65eaa720228f9da80acd..5d188469e646a0412dcc6d023ff6075913305f3f 100644 (file)
@@ -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