unidom-standard 1.3.6 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/lib/rspec/models/unidom/standard/standard_associating_spec.rb +21 -0
- data/lib/rspec/models/unidom/standard/standard_spec.rb +24 -0
- data/lib/unidom/standard/models_rspec.rb +2 -0
- data/lib/unidom/standard/types_rspec.rb +0 -0
- data/lib/unidom/standard/validators_rspec.rb +0 -0
- data/lib/unidom/standard/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cebcbca409ec994550be2208bec440723ea724d1
|
4
|
+
data.tar.gz: 7daec7f6026996bd27bfd96006ac5a5942676d17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bc63993872b71a8593b9b08a849506bf48af81784bd8ec0047acf81149a688dde24d05c62de2712920bc7248523fdf3830db403d26a70d6935135900a5d5f57
|
7
|
+
data.tar.gz: d784ced9ab18d70da3a830a9bad586c0fac5b21b4bd388520cad2ea69f7f3b5fa05d99a75cdda750ea90ca4d7692080fb0d7f5206291b1133bccfb2493d92018
|
data/README.md
CHANGED
@@ -88,3 +88,18 @@ Unidom::Common.configure do |options|
|
|
88
88
|
|
89
89
|
end
|
90
90
|
```
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
## RSpec examples
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
# spec/models/unidom_spec.rb
|
98
|
+
require 'unidom/standard/models_rspec'
|
99
|
+
|
100
|
+
# spec/types/unidom_spec.rb
|
101
|
+
require 'unidom/standard/types_rspec'
|
102
|
+
|
103
|
+
# spec/validators/unidom_spec.rb
|
104
|
+
require 'unidom/standard/validators_rspec'
|
105
|
+
```
|
@@ -0,0 +1,21 @@
|
|
1
|
+
describe Unidom::Standard::StandardAssociating, 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
|
+
source_id: SecureRandom.uuid,
|
13
|
+
target_id: SecureRandom.uuid,
|
14
|
+
association_code: 'REVS'
|
15
|
+
}
|
16
|
+
|
17
|
+
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
describe Unidom::Standard::Standard, 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
|
+
name: 'Some Name',
|
13
|
+
number: 'GB/T 3259-2008',
|
14
|
+
ics_code: '11-23-68',
|
15
|
+
published_on: Date.current-1.year,
|
16
|
+
applied_on: Date.current,
|
17
|
+
obsoleted_on: Date.current+20.years
|
18
|
+
}
|
19
|
+
|
20
|
+
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,2 @@
|
|
1
|
+
require 'rspec/models/unidom/standard/standard_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Standard::Standard'
|
2
|
+
require 'rspec/models/unidom/standard/standard_associating_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Standard::StandardAssociating'
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-standard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.4'
|
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
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
@@ -52,9 +52,14 @@ files:
|
|
52
52
|
- config/routes.rb
|
53
53
|
- db/migrate/20000601000000_create_unidom_standards.rb
|
54
54
|
- db/migrate/20000602000000_create_unidom_standard_associatings.rb
|
55
|
+
- lib/rspec/models/unidom/standard/standard_associating_spec.rb
|
56
|
+
- lib/rspec/models/unidom/standard/standard_spec.rb
|
55
57
|
- lib/tasks/standard_tasks.rake
|
56
58
|
- lib/unidom/standard.rb
|
57
59
|
- lib/unidom/standard/engine.rb
|
60
|
+
- lib/unidom/standard/models_rspec.rb
|
61
|
+
- lib/unidom/standard/types_rspec.rb
|
62
|
+
- lib/unidom/standard/validators_rspec.rb
|
58
63
|
- lib/unidom/standard/version.rb
|
59
64
|
homepage: https://github.com/topbitdu/unidom-standard
|
60
65
|
licenses:
|