unidom-position 1.5.4 → 1.5.5
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: 9d524f9a0026d671f20476ae67a4201ce263b533
|
4
|
+
data.tar.gz: d14c8e378cea90875003de02fafa7b302c574817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1919bf69407ff14a98f79fcdc4603fc6046b47545092c89663d59e9b870157b55d78385ef6cf0985851196b8aa6cf8945399953018ffe7c6ce17f34c00f62db
|
7
|
+
data.tar.gz: f7143771d9200f23cde9c98b858976b7924f7ceed50263b367c372d5ee4d9918da07879635c36d6559a4b01165062ca7bd9770f42d3a395516798bc0b8254e8d
|
@@ -31,14 +31,12 @@ describe Unidom::Position::Position, type: :model do
|
|
31
31
|
post_1_attributes = {
|
32
32
|
organization_id: SecureRandom.uuid,
|
33
33
|
organization_type: 'Unidom::Position::Organization::Mock',
|
34
|
-
#position_id: SecureRandom.uuid,
|
35
34
|
name: 'Some Post #1'
|
36
35
|
}
|
37
36
|
|
38
37
|
post_2_attributes = {
|
39
38
|
organization_id: SecureRandom.uuid,
|
40
39
|
organization_type: 'Unidom::Position::Organization::Mock',
|
41
|
-
#position_id: SecureRandom.uuid,
|
42
40
|
name: 'Some Post #2'
|
43
41
|
}
|
44
42
|
|
@@ -15,6 +15,16 @@ describe Unidom::Position::PostReportingStructure, type: :model do
|
|
15
15
|
|
16
16
|
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
|
17
17
|
|
18
|
+
post_attributes = {
|
19
|
+
organization_id: SecureRandom.uuid,
|
20
|
+
organization_type: 'Unidom::Position::Organization::Mock',
|
21
|
+
position_id: SecureRandom.uuid,
|
22
|
+
name: 'Some Post'
|
23
|
+
}
|
24
|
+
|
25
|
+
it_behaves_like 'belongs_to', model_attributes, :superior_post, Unidom::Position::Post, post_attributes
|
26
|
+
it_behaves_like 'belongs_to', model_attributes, :inferior_post, Unidom::Position::Post, post_attributes
|
27
|
+
|
18
28
|
end
|
19
29
|
|
20
30
|
end
|
@@ -19,6 +19,15 @@ describe Unidom::Position::Post, type: :model do
|
|
19
19
|
|
20
20
|
it_behaves_like 'validates text', model_attributes, :name, length: 2..described_class.columns_hash['name'].limit
|
21
21
|
|
22
|
+
position_attributes = {
|
23
|
+
organization_id: SecureRandom.uuid,
|
24
|
+
organization_type: 'Unidom::Position::Organization::Mock',
|
25
|
+
occupation_id: SecureRandom.uuid,
|
26
|
+
name: 'Some Position'
|
27
|
+
}
|
28
|
+
|
29
|
+
it_behaves_like 'belongs_to', model_attributes, :position, Unidom::Position::Position, position_attributes
|
30
|
+
|
22
31
|
end
|
23
32
|
|
24
33
|
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.5
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|