Sha256: 86f0ee7d8e95ca4d154c8d6e1273fcecb6a2d63cab17f6be755095b1020482d1

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/more/annattr.rb
#
# Extracted Wed Aug 23 18:22:52 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/more/annattr.rb'


  require 'test/unit'

  class TC01 < Test::Unit::TestCase
    class A
      attr_accessor :x, :cast=>"to_s"
    end

    def test_09_001
      a = A.new
      assert_equal( [:x], A.attributes )
    end
  end

  class TC10 < Test::Unit::TestCase
    class A
      attr :x, :cast=>"to_s"
    end

    def test_10_001
      assert_equal( "to_s", A.ann.x.cast )
    end
  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.30 test/lib/facets/more/test_annattr.rb