Sha256: b93a67b46600844d37b3d40cd4bd4229def82f2cb0c8f16d3fa57b9463b30b10

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

=begin
require 'annotable'
require 'test/unit'

include Annotatable

annotation :req

class Test_Annotatable < Test::Unit::TestCase

  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
=end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anise-0.1.1 test/test_toplevel_annotatable.rb