Sha256: fba310a8d439b5c3115460b9dc3c5a2f2bf16c74a05c6d5c60e01fa4e6fd30eb

Contents?: true

Size: 224 Bytes

Versions: 1

Compression:

Stored size: 224 Bytes

Contents

require 'anise/attributes'

class Test_Attribute < Test::Unit::TestCase

  include Anise::Annotatable::Attributes

  attr :q

  attr :a, :x => 1

  def test_attr_a
    assert_equal( {:x=>1}, self.class.ann(:a) )
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anise-0.1.1 test/test_attribute.rb