unidom-position 1.5.1 → 1.5.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: dec8f46a499c42bc59de67d1a7150a8810bbe7b1
|
4
|
+
data.tar.gz: fbeef69018f0f8b45b086e9ba6401833e0b7ceaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b10b7ce89d6880ea468abf8f0c378db79cb7d289241fb10d3f801b522b12ea690fcdfa028a2a195188b43d172e4de09478677d710bacf80602227f9c97ff42a
|
7
|
+
data.tar.gz: 67eb9b856b56588bdd4fabcb496cf4231b9549de8a9e427fb3817afde787cd753c25de49dcfbf7830f5673f3e0cbc1107f055ee033dd0050deb40a190b1cb148
|
@@ -30,6 +30,20 @@ describe Unidom::Position::Occupation, type: :model do
|
|
30
30
|
{ name: 'A'*name_max_length } => 0,
|
31
31
|
{ name: 'A'*(name_max_length+1) } => 1
|
32
32
|
|
33
|
+
position_1_attributes = {
|
34
|
+
organization_id: SecureRandom.uuid,
|
35
|
+
organization_type: 'Unidom::Position::Organization::Mock',
|
36
|
+
name: 'Some Position #1'
|
37
|
+
}
|
38
|
+
|
39
|
+
position_2_attributes = {
|
40
|
+
organization_id: SecureRandom.uuid,
|
41
|
+
organization_type: 'Unidom::Position::Organization::Mock',
|
42
|
+
name: 'Some Position #2'
|
43
|
+
}
|
44
|
+
|
45
|
+
it_behaves_like 'has_many', model_attributes, :positions, Unidom::Position::Position, [ position_1_attributes, position_2_attributes ]
|
46
|
+
|
33
47
|
end
|
34
48
|
|
35
49
|
end
|
@@ -30,6 +30,15 @@ describe Unidom::Position::Position, type: :model do
|
|
30
30
|
{ name: 'A'*name_max_length } => 0,
|
31
31
|
{ name: 'A'*(name_max_length+1) } => 1
|
32
32
|
|
33
|
+
occupation_attributes = {
|
34
|
+
scheme_id: SecureRandom.uuid,
|
35
|
+
scheme_type: 'Unidom::Position::Scheme::Mock',
|
36
|
+
code: '5-1-99',
|
37
|
+
name: 'Some Occupation'
|
38
|
+
}
|
39
|
+
|
40
|
+
it_behaves_like 'belongs_to', model_attributes, :occupation, Unidom::Position::Occupation, occupation_attributes
|
41
|
+
|
33
42
|
end
|
34
43
|
|
35
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-position
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.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-02
|
11
|
+
date: 2017-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|