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