Sha256: 1ca4510274ecaafdfba3a5f6056c723f2c00bdbeb64a216dcef31b417d965ea0

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

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

include Annotatable::Attributes

$self = self

attr :b, :y => 1

class Test_Attribute_Toplevel < Test::Unit::TestCase

  attr :q

  attr :a, :x => 1

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

  def test_attr_b
    assert_equal( {:y=>1}, $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_attribute.rb