From 7efd6ec5819775226d669c15b58649d375f72959 Mon Sep 17 00:00:00 2001 From: Ken Barber Date: Thu, 28 Jul 2011 15:44:26 +0100 Subject: (#1) - added new test for upcase. --- spec/unit/parser/functions/upcase_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/unit/parser/functions/upcase_spec.rb') 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 -- cgit v1.2.3