module_result_fixtures.rb
909 Bytes
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
require File.dirname(__FILE__) + '/module_fixtures'
class ModuleResultFixtures
def self.module_result
Kalibro::ModuleResult.new module_result_hash
end
def self.module_result_hash
{
:id => "42",
:module => ModuleFixtures.module_hash,
:grade => "10.0",
:parent_id => "31",
:attributes! =>
{
:module =>
{
"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
"xsi:type"=>"kalibro:moduleXml"
}
}
}
end
def self.parent_module_result_hash
{
:id => "31",
:module => {
:name => 'Qt-Calculator Parent',
:granularity => 'APPLICATION'
},
:grade => "10.0",
:attributes! =>
{
:module =>
{
"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
"xsi:type"=>"kalibro:moduleXml"
}
}
}
end
end