glue 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,33 +0,0 @@
1
- __END__
2
-
3
- $:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib')
4
-
5
- require 'yaml'
6
- require 'test/unit'
7
- require 'glue/metadata'
8
-
9
- class Dummy
10
- include MetadataMixin
11
-
12
- attr_accessor :name
13
- ann :name, :class => String
14
- ann :properties => :name
15
-
16
- def run
17
- puts 'hello'
18
- end
19
- ann :run, :doc => 'documentation'
20
- ann :order => 'oid DESC'
21
- end
22
-
23
- class TestMetadata < Test::Unit::TestCase # :nodoc: all
24
-
25
- def test_all
26
- p Dummy.metadata.self.properties
27
- assert_equal 'documentation', Dummy.metadata.run.doc
28
- assert_equal 'oid DESC', Dummy.metadata.self.order
29
- assert_equal 1, Dummy.metadata.self.properties.size
30
- end
31
-
32
- end
33
-