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