unidom-position 1.4.5 → 1.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: 80e180955365b86c13d846f158c09e0b0d4e8481
4
- data.tar.gz: 925df0f09a34d753c08477b0038ec496c30f569c
3
+ metadata.gz: 0ec0d603b69dc5b97fb041bb6711e8742ec3c7d9
4
+ data.tar.gz: beef56973619870bd5be3473a2ce874d33fd8570
5
5
  SHA512:
6
- metadata.gz: de79f6dc7e5fcf1bb85e1c3b4d66943721d266551fa447d13d6ae9f3822e12252d190caf4e34fb9987cd5ba3b635b140f53e23084ca69b5ef0c153aeb9df10c7
7
- data.tar.gz: e44f83de2faa6d66b64d930b00c6120ac8731a36bfd1ed31f74bffca81da1df4b7d5cc772c9e4f722974e4ff3a3876594cec39d86aa3ecba13eb0a3ba1ffcf31
6
+ metadata.gz: b5613a724b6986c64643a36b547e3e840809dae138f32b7de028a9e4fd9b2a308290dfe64128e2963c9f681dab4f9fc949d819ca58a8a23b8874bd9ed8a4c653
7
+ data.tar.gz: 00b7eb0710d048fc3e5f352a74cb02c6ceedd62a80572bb5ca3895cb8c016f47dc6a4cad513c42c4948c255ef4fe229e660a1069bd9eaffab2d6f603c3862b74
data/README.md CHANGED
@@ -108,3 +108,18 @@ Unidom::Common.configure do |options|
108
108
 
109
109
  end
110
110
  ```
111
+
112
+
113
+
114
+ ## RSpec examples
115
+
116
+ ```ruby
117
+ # spec/models/unidom_spec.rb
118
+ require 'unidom/position/models_rspec'
119
+
120
+ # spec/types/unidom_spec.rb
121
+ require 'unidom/position/types_rspec'
122
+
123
+ # spec/validators/unidom_spec.rb
124
+ require 'unidom/position/validators_rspec'
125
+ ```
@@ -0,0 +1,22 @@
1
+ describe Unidom::Position::Occupation, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ scheme_id: SecureRandom.uuid,
13
+ scheme_type: 'Unidom::Position::Scheme::Mock',
14
+ code: '5-1-99',
15
+ name: 'Some Occupation'
16
+ }
17
+
18
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,22 @@
1
+ describe Unidom::Position::Position, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ organization_id: SecureRandom.uuid,
13
+ organization_type: 'Unidom::Position::Organization::Mock',
14
+ occupation_id: SecureRandom.uuid,
15
+ name: 'Some Position'
16
+ }
17
+
18
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,20 @@
1
+ describe Unidom::Position::PostReportingStructure, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ superior_post_id: SecureRandom.uuid,
13
+ inferior_post_id: SecureRandom.uuid
14
+ }
15
+
16
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
17
+
18
+ end
19
+
20
+ end
@@ -0,0 +1,22 @@
1
+ describe Unidom::Position::Post, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ organization_id: SecureRandom.uuid,
13
+ organization_type: 'Unidom::Position::Organization::Mock',
14
+ position_id: SecureRandom.uuid,
15
+ name: 'Some Post'
16
+ }
17
+
18
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,4 @@
1
+ require 'rspec/models/unidom/position/occupation_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Position::Cccupation'
2
+ require 'rspec/models/unidom/position/position_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Position::Position'
3
+ require 'rspec/models/unidom/position/post_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Position::Post'
4
+ require 'rspec/models/unidom/position/post_reporting_structure_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Position::PostReportingStructure'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Position
3
- VERSION = '1.4.5'.freeze
3
+ VERSION = '1.5'.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.4.5
4
+ version: '1.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-01-23 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -56,9 +56,16 @@ files:
56
56
  - db/migrate/20040211000000_create_unidom_positions.rb
57
57
  - db/migrate/20040212000000_create_unidom_posts.rb
58
58
  - db/migrate/20040221000000_create_unidom_post_reporting_structures.rb
59
+ - lib/rspec/models/unidom/position/occupation_spec.rb
60
+ - lib/rspec/models/unidom/position/position_spec.rb
61
+ - lib/rspec/models/unidom/position/post_reporting_structure_spec.rb
62
+ - lib/rspec/models/unidom/position/post_spec.rb
59
63
  - lib/tasks/data_tasks.rake
60
64
  - lib/unidom/position.rb
61
65
  - lib/unidom/position/engine.rb
66
+ - lib/unidom/position/models_rspec.rb
67
+ - lib/unidom/position/types_rspec.rb
68
+ - lib/unidom/position/validators_rspec.rb
62
69
  - lib/unidom/position/version.rb
63
70
  homepage: https://github.com/topbitdu/unidom-position
64
71
  licenses: