anise 0.7.0 → 0.8.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.
data/test/case_methods.rb DELETED
@@ -1,36 +0,0 @@
1
- testcase Anise::Annotative::Methods do
2
-
3
- cX = Class.new do
4
- extend Anise::Annotative::Methods
5
-
6
- def self.req(val)
7
- method_annotation(:req=>val)
8
- end
9
-
10
- req 'r'
11
- def a ; "a"; end
12
-
13
- req ['x', 'y']
14
- attr :b
15
- end
16
-
17
- test do |a, h|
18
- h.each do |k, r|
19
- cX.ann(a, k).assert == r
20
- end
21
- end
22
-
23
- ok :a, :req => 'r'
24
- ok :b, :req => ['x','y']
25
-
26
- test do |h|
27
- h.each do |a, r|
28
- cX.ann(a).assert == r
29
- end
30
- end
31
-
32
- ok :a => {:req=>'r'}
33
- ok :b => {:req=>['x','y']}
34
-
35
- end
36
-
@@ -1,22 +0,0 @@
1
- testcase Anise::Annotative::Variables do
2
-
3
- context "general" do
4
-
5
- cX = Class.new do
6
- extend Anise::Annotative::Variables
7
-
8
- @doc = "See what I mean?"
9
- @returns = NilClass
10
-
11
- def see
12
- puts "Yes, I see!"
13
- end
14
- end
15
-
16
- test do
17
- cX.ann(:see, :@doc) == "See what I mean?"
18
- end
19
-
20
- end
21
-
22
- end
data/test/helper.rb DELETED
@@ -1,2 +0,0 @@
1
- require 'anise'
2
-