diff options
author | Ken Barber <ken@bob.sh> | 2011-07-28 15:44:26 +0100 |
---|---|---|
committer | Ken Barber <ken@bob.sh> | 2011-07-28 15:44:26 +0100 |
commit | 7efd6ec5819775226d669c15b58649d375f72959 (patch) | |
tree | 0c079e1a6d7480e9967547f786ca44178dfbe08f /spec/unit/parser | |
parent | a55930368afe2e8177608472653c4696eccec92f (diff) |
(#1) - added new test for upcase.
Diffstat (limited to 'spec/unit/parser')
-rw-r--r-- | spec/unit/parser/functions/upcase_spec.rb | 5 |
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 |