Sha256: a1c249a9d975d91cf1e752efb3f2e1ac13187455111db74d22aedc29cfdd5afa

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/module/initializer.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/module/initializer.rb'


  require 'test/unit'

  class TCModule < Test::Unit::TestCase

    def test_attr_initializer
      cc = Class.new
      cc.class_eval {
        initializer :ai
        attr_reader :ai
      }
      c = cc.new(10)
      assert_equal( 10, c.ai )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.0.3 packages/core/test/lib/facet/module/test_initializer.rb