test/more/test_class_extend.rb in facets-2.7.0 vs test/more/test_class_extend.rb in facets-2.8.0

- old
+ new

@@ -6,10 +6,12 @@ class TC_ClassExtension < Test::Unit::TestCase # fixture module N + def instance_method; end + class_extend do def n ; 43 ; end def s ; self ; end end #extend class_extend # NOTE: No longer needed! @@ -49,9 +51,14 @@ assert_equal( K, K.s ) end def test_05 assert_equal( 44, Z.n ) assert_equal( Z, Z.s ) + end + def test_06 + assert_equal( ['instance_method'], N.instance_methods.map{ |m| m.to_s } ) + result = (N.methods - N.instance_methods - Object.instance_methods - Module.methods).map{ |m| m.to_s }.sort + assert_equal( ['append_features', 'n', 's'], result) end end