Permalink
Browse files

Mark Class as not being duplicable. [#829 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent bbedb6a commit 654c41255d22b2767b943dbe970d8b24f2a1387b @fcheung fcheung committed with lifo Aug 21, 2008
@@ -35,3 +35,9 @@ def duplicable?
false
end
end
+
+class Class #:nodoc:
+ def duplicable?
+ false
+ end
+end
@@ -1,7 +1,7 @@
require 'abstract_unit'
class DuplicableTest < Test::Unit::TestCase
- NO = [nil, false, true, :symbol, 1, 2.3, BigDecimal.new('4.56')]
+ NO = [nil, false, true, :symbol, 1, 2.3, BigDecimal.new('4.56'), Class.new]
YES = ['1', Object.new, /foo/, [], {}, Time.now]
def test_duplicable

0 comments on commit 654c412

Please sign in to comment.