unidom-position 1.5.6 → 1.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/models/unidom/position/position_spec.rb +2 -1
- data/lib/rspec/models/unidom/position/post_reporting_structure_spec.rb +3 -0
- data/lib/rspec/models/unidom/position/post_spec.rb +2 -1
- data/lib/unidom/position/rspec_shared_examples.rb +0 -0
- data/lib/unidom/position/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b02cea0e5e887460b95397e9a23ee799045ae334
|
4
|
+
data.tar.gz: d965518cca7364debc821b51443b446d7b8b4394
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5325d6bde25baae6eba36e1c7c3f3638e2d6608d1e5f9b14a968e1c333c7b1f535baab81e9e8bed70c92e06789aa86f7b948f1c8b693d0b42a5dca19c546ef60
|
7
|
+
data.tar.gz: 7a1d4210e6f3d1699d2d82f242e366e4abf97a6caaf4fbec9b177fe7acc9f4c6d312b2e07b0ffe502035b9f982efe329f3b31aab96f104ee08fe1b1c46f23241
|
@@ -17,7 +17,8 @@ describe Unidom::Position::Position, type: :model do
|
|
17
17
|
|
18
18
|
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
|
19
19
|
|
20
|
-
it_behaves_like 'validates text', model_attributes, :name,
|
20
|
+
it_behaves_like 'validates text', model_attributes, :name,
|
21
|
+
length: 2..described_class.columns_hash['name'].limit
|
21
22
|
|
22
23
|
occupation_attributes = {
|
23
24
|
scheme_id: SecureRandom.uuid,
|
@@ -25,6 +25,9 @@ describe Unidom::Position::PostReportingStructure, type: :model do
|
|
25
25
|
it_behaves_like 'belongs_to', model_attributes, :superior_post, Unidom::Position::Post, post_attributes
|
26
26
|
it_behaves_like 'belongs_to', model_attributes, :inferior_post, Unidom::Position::Post, post_attributes
|
27
27
|
|
28
|
+
it_behaves_like 'monomorphic scope', model_attributes, :superior_post_is, :superior_post
|
29
|
+
it_behaves_like 'monomorphic scope', model_attributes, :inferior_post_is, :inferior_post
|
30
|
+
|
28
31
|
end
|
29
32
|
|
30
33
|
end
|
@@ -17,7 +17,8 @@ describe Unidom::Position::Post, type: :model do
|
|
17
17
|
|
18
18
|
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
|
19
19
|
|
20
|
-
it_behaves_like 'validates text', model_attributes, :name,
|
20
|
+
it_behaves_like 'validates text', model_attributes, :name,
|
21
|
+
length: 2..described_class.columns_hash['name'].limit
|
21
22
|
|
22
23
|
position_attributes = {
|
23
24
|
organization_id: SecureRandom.uuid,
|
File without changes
|
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.7
|
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-04-
|
11
|
+
date: 2017-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/unidom/position.rb
|
65
65
|
- lib/unidom/position/engine.rb
|
66
66
|
- lib/unidom/position/models_rspec.rb
|
67
|
+
- lib/unidom/position/rspec_shared_examples.rb
|
67
68
|
- lib/unidom/position/types_rspec.rb
|
68
69
|
- lib/unidom/position/validators_rspec.rb
|
69
70
|
- lib/unidom/position/version.rb
|