summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
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