Sha256: d55f3c929385a73dd067a684f352c001e5605886130fde689c8bee787b245638

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

require 'anise/annotator'

class Test_Annotator < Test::Unit::TestCase

  class X
    include Anise::Annotator

    annotator :req

    req 'r'

    def a ; "a"; end

    req 's'

    attr :b
  end

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

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

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
anise-0.2.0 test/test_annotator.rb
anise-0.2.1 test/test_annotator.rb
anise-0.2.2 test/test_annotator.rb
anise-0.3.0 test/test_annotator.rb
anise-0.4.0 test/test_annotator.rb