Sha256: 79764ec7d59be01fdb6b1339e256b04a04e98615395a1dc2dc694b376ccabe07

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

require 'anise/annotatable'

class Test_Annotatable < Test::Unit::TestCase

  include Anise::Annotatable

  annotation :req

  req 'r'

  def a
    "a"
  end

  def test_annotated
    assert_equal( {:req=>['r']}, self.class.ann(:a) )
  end

  req 's'

  attr :b

  def test_annotated
    assert_equal( {:req=>['s']}, self.class.ann(:b) )
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anise-0.1.1 test/test_annotatable.rb