unidom-position 1.4.5 → 1.5
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 +4 -4
- data/README.md +15 -0
- data/lib/rspec/models/unidom/position/occupation_spec.rb +22 -0
- data/lib/rspec/models/unidom/position/position_spec.rb +22 -0
- data/lib/rspec/models/unidom/position/post_reporting_structure_spec.rb +20 -0
- data/lib/rspec/models/unidom/position/post_spec.rb +22 -0
- data/lib/unidom/position/models_rspec.rb +4 -0
- data/lib/unidom/position/types_rspec.rb +0 -0
- data/lib/unidom/position/validators_rspec.rb +0 -0
- data/lib/unidom/position/version.rb +1 -1
- metadata +9 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ec0d603b69dc5b97fb041bb6711e8742ec3c7d9
|
|
4
|
+
data.tar.gz: beef56973619870bd5be3473a2ce874d33fd8570
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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
|
+
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-
|
|
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:
|