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: e6ddb64e6ad18f4e5e7c06671a13706c1b9ac722
4
- data.tar.gz: 1954b896bd53c093685dd5891c1798887f2dd98e
3
+ metadata.gz: dec8f46a499c42bc59de67d1a7150a8810bbe7b1
4
+ data.tar.gz: fbeef69018f0f8b45b086e9ba6401833e0b7ceaf
5
5
  SHA512:
6
- metadata.gz: e579c58409d2ea75bf717dd48df033cdd3e7b7f4dd7d94b221ccae79d15386b25a2479e1deb45070dd0ccd02e0f5af8c5cc3e4f77898292c49566bb61d5034ba
7
- data.tar.gz: e0c5015c998a8977101ee4adce24aeba3e8fab631a4fd980f53d1db774584f8273ddc09fdc1c4ea407109c9606d19148bdc941fe1419e38621747c1bc8f03b4f
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
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Position
3
- VERSION = '1.5.1'.freeze
3
+ VERSION = '1.5.2'.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.1
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-18 00:00:00.000000000 Z
11
+ date: 2017-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common