summaryrefslogtreecommitdiff
path: root/spec/functions/unique_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functions/unique_spec.rb')
-rwxr-xr-xspec/functions/unique_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/functions/unique_spec.rb b/spec/functions/unique_spec.rb
index 8ec1464..7cd3a56 100755
--- a/spec/functions/unique_spec.rb
+++ b/spec/functions/unique_spec.rb
@@ -21,4 +21,13 @@ describe "the unique function" do
result = scope.function_unique([["a","a","b","b","c"]])
expect(result).to(eq(['a','b','c']))
end
+
+ it "should accept objects which extend String" do
+ class AlsoString < String
+ end
+
+ value = AlsoString.new('aabbc')
+ result = scope.function_unique([value])
+ result.should(eq('abc'))
+ end
end