unidom-position 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0813c4e46f3fbc13975ba48100dab648537a148
4
- data.tar.gz: 9048d4fb96b701b1b75bcf5ee5fc906005521dbc
3
+ metadata.gz: b02cea0e5e887460b95397e9a23ee799045ae334
4
+ data.tar.gz: d965518cca7364debc821b51443b446d7b8b4394
5
5
  SHA512:
6
- metadata.gz: 2e9bcce5614ccbc20f78cf16c2fa083763c523cde625576acfb7dc56bfaffc0e0e790b6980822e3c33252deba48d8aacbc0c54fe5e7b921252a59f32737515f4
7
- data.tar.gz: d026bdaa309541c8182303716ef3b83e4971007b290df95faed67938bb0895b406515689c9429de34bc3ae20273c09f126f7cbd3fd5118c55d72ce99c9179590
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, length: 2..described_class.columns_hash['name'].limit
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, length: 2..described_class.columns_hash['name'].limit
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,
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Position
3
- VERSION = '1.5.6'.freeze
3
+ VERSION = '1.5.7'.freeze
4
4
  end
5
5
  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.6
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-01 00:00:00.000000000 Z
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