unidom-score 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8b73818da4c3789e5c7ab60263cdbdef518958c
|
4
|
+
data.tar.gz: 8fdcb0fe9fe0dddadaba9f22bb1a968e92e14e49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f391e48f95c151e261e595b3a2827ff03fa0918ac2e7c01bf3807220e5aec66b9f34ee49041f2c7c23648494cd31c4d328f54c23fef5aa0f5a3b3d9c9a380b59
|
7
|
+
data.tar.gz: 94947b8326de203344252ff7b394a4ee2648076373cd6c84e47c3c7fd41867a11d9c53506c120ea1b66a17ca7b16b0213f143fc8a1bf4d9eb227645ba2ae3129
|
@@ -55,6 +55,19 @@ describe Unidom::Score::ScoreItem, type: :model do
|
|
55
55
|
{ title: 'A'*title_max_length } => 0,
|
56
56
|
{ title: 'A'*(title_max_length+1) } => 1
|
57
57
|
|
58
|
+
score_sheet_attributes = {
|
59
|
+
template_id: SecureRandom.uuid,
|
60
|
+
scorer_id: SecureRandom.uuid,
|
61
|
+
scorer_type: 'Unidom::Score::Scorer::Mock',
|
62
|
+
score_keeper_id: SecureRandom.uuid,
|
63
|
+
score_keeper_type: 'Unidom::Score::ScoreKeeper::Mock',
|
64
|
+
name: 'Some Name',
|
65
|
+
score: 95.00,
|
66
|
+
scored_on: Date.current
|
67
|
+
}
|
68
|
+
|
69
|
+
it_behaves_like 'belongs_to', model_attributes, :sheet, Unidom::Score::ScoreSheet, score_sheet_attributes
|
70
|
+
|
58
71
|
end
|
59
72
|
|
60
73
|
end
|
@@ -16,6 +16,15 @@ describe Unidom::Score::ScoreItemTemplate, type: :model do
|
|
16
16
|
|
17
17
|
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
|
18
18
|
|
19
|
+
score_sheet_template_attributes = {
|
20
|
+
subject_id: SecureRandom.uuid,
|
21
|
+
subject_type: 'Unidom::Score::Subject::Mock',
|
22
|
+
name: 'Some Name',
|
23
|
+
score: 100.00
|
24
|
+
}
|
25
|
+
|
26
|
+
it_behaves_like 'belongs_to', model_attributes, :sheet, Unidom::Score::ScoreSheetTemplate, score_sheet_template_attributes
|
27
|
+
|
19
28
|
end
|
20
29
|
|
21
30
|
end
|
data/lib/unidom/score/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-score
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Topbit Du
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|