summaryrefslogtreecommitdiff
path: root/spec/functions/downcase_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functions/downcase_spec.rb')
-rwxr-xr-xspec/functions/downcase_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/functions/downcase_spec.rb b/spec/functions/downcase_spec.rb
index a844780..edebc44 100755
--- a/spec/functions/downcase_spec.rb
+++ b/spec/functions/downcase_spec.rb
@@ -21,4 +21,13 @@ describe "the downcase function" do
result = scope.function_downcase(["asdf asdf"])
expect(result).to(eq("asdf asdf"))
end
+
+ it "should accept objects which extend String" do
+ class AlsoString < String
+ end
+
+ value = AlsoString.new("ASFD")
+ result = scope.function_downcase([value])
+ result.should(eq('asfd'))
+ end
end