module_node_fixtures.rb
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require File.dirname(__FILE__) + '/module_fixtures'
class ModuleNodeFixtures
def self.module_node
Kalibro::ModuleNode.new module_node_hash
end
def self.module_node_hash
{
:module => ModuleFixtures.module_hash,:attributes! => {:module => {
'xmlns:xsi'=> 'http://www.w3.org/2001/XMLSchema-instance',
'xsi:type' => 'kalibro:moduleXml' }},
:child => [{
:module => {
:name => 'org',
:granularity => 'PACKAGE'
},:attributes! => {:module => {
'xmlns:xsi'=> 'http://www.w3.org/2001/XMLSchema-instance',
'xsi:type' => 'kalibro:moduleXml' }},
:child => [{
:module => {
:name => 'org.Window',
:granularity => 'CLASS'
},:attributes! => {:module => {
'xmlns:xsi'=> 'http://www.w3.org/2001/XMLSchema-instance',
'xsi:type' => 'kalibro:moduleXml' }}
}]
},{
:module => {
:name => 'Dialog',
:granularity => 'CLASS'
},:attributes! => {:module => {
'xmlns:xsi'=> 'http://www.w3.org/2001/XMLSchema-instance',
'xsi:type' => 'kalibro:moduleXml' }}
},{
:module => {
:name => 'main',
:granularity => 'CLASS'
},:attributes! => {:module => {
'xmlns:xsi'=> 'http://www.w3.org/2001/XMLSchema-instance',
'xsi:type' => 'kalibro:moduleXml' }}
}]
}
end
end