test/more/test_inheritor.rb in facets-2.7.0 vs test/more/test_inheritor.rb in facets-2.8.0
- old
+ new
@@ -16,14 +16,16 @@
# end
#end
class TC_Inheritor_02 < Test::Unit::TestCase
class C
- inheritor :koko, [1], :+
+ inheritor :koko, [], :+
+ koko! << 1
end
class D < C
- inheritor :koko, [2], :+
+ inheritor :koko, [], :+
+ koko! << 2
end
def test_02_001
assert_equal( [1], C.koko! )
end
@@ -38,11 +40,12 @@
end
end
class TC_Inheritor_03 < Test::Unit::TestCase
class C
- inheritor :koko, [1], :+
+ inheritor :koko, [], :+
+ koko! << 1
end
class D < C
end
def test_03_001
@@ -59,17 +62,20 @@
end
end
class TC_Inheritor_04 < Test::Unit::TestCase
class X
- inheritor :x, {:a=>1}, :merge
+ inheritor :x, {}, :merge
+ x![:a] = 1
end
module M
- inheritor :x, {:b=>2}, :merge
+ inheritor :x, {}, :merge
+ x![:b] = 2
end
class Y < X
include M
- inheritor :x, {:c=>3}, :merge
+ inheritor :x, {}, :merge
+ x![:c] = 3
end
def test_04_001
assert_equal( {:a=>1}, X.x )
end