Sha256: 95a62c31195aaab10b983201b87f08d8f896f8e2b5f2cec08454416d657843aa

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

  #  _____         _
  # |_   _|__  ___| |_
  #   | |/ _ \/ __| __|
  #   | |  __/\__ \ |
  #   |_|\___||___/\__|
  #
  # for lib/facets/class/initializer.rb
  #
  # Extracted Mon Sep 03 16:23:07 -0700 2007
  # w/ Test Extraction Ratchet
  #

 require 'facets/class/initializer.rb'



  require 'test/unit'

  class TCModule < Test::Unit::TestCase

    def test_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

5 entries across 5 versions & 1 rubygems

Version Path
facets-2.0.0 test/unit/class/test_initializer.rb
facets-2.0.1 test/unit/class/test_initializer.rb
facets-2.0.2 test/unit/class/test_initializer.rb
facets-2.0.3 test/unit/class/test_initializer.rb
facets-2.0.4 test/unit/class/test_initializer.rb