Sha256: a326c3eba1d0c9c7366ab23b9593c7f109fe8b1988683927bed74a451a944385

Contents?: true

Size: 689 Bytes

Versions: 1

Compression:

Stored size: 689 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/more/preinitialize.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/more/preinitialize.rb'


  require 'test/unit'

  class TC_Preinitalize < Test::Unit::TestCase

    module M
      def preinitialize
        @a = 10
      end
    end

    class X
      include M
      def a ; @a ; end
    end

    class Y < X
      def initialize
        super
      end
    end

    def test_01
      x = X.new
      assert_equal( 10, x.a )
    end

    def test_01
      y = Y.new
      assert_equal( 10, y.a )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/more/test_preinitialize.rb