unidom-certificate 2.0.5 → 2.1
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/certificate/certificating_spec.rb +24 -0
- data/lib/unidom/certificate/models_rspec.rb +1 -0
- data/lib/unidom/certificate/types_rspec.rb +0 -0
- data/lib/unidom/certificate/validators_rspec.rb +0 -0
- data/lib/unidom/certificate/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 364da9418346c3ba8762a9ef20f57b8e997ae1a5
|
4
|
+
data.tar.gz: b8b8e9dcf061908f5a5c8a19eb2a0c56b36aa46c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 647d837db97b0993e9cb6e5a9698470acda03692f39efdf031b14ef7078ddc2777be687c53a8ceec583d3b2d4e38868634507455d5cae31fce484f5bcb140ed1
|
7
|
+
data.tar.gz: 5fb4eec191e06ede9d7af3b22eaebcbc7c4c857f40c89119734e7f87f51a7c23f5a7d32aa0db02eadf3d046c4281dd76a89a2d3f5e6e7c47f04b487d4499709d
|
data/README.md
CHANGED
@@ -82,3 +82,18 @@ Unidom::Common.configure do |options|
|
|
82
82
|
|
83
83
|
end
|
84
84
|
```
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
## RSpec examples
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
# spec/models/unidom_spec.rb
|
92
|
+
require 'unidom/certificate/models_rspec'
|
93
|
+
|
94
|
+
# spec/types/unidom_spec.rb
|
95
|
+
require 'unidom/certificate/types_rspec'
|
96
|
+
|
97
|
+
# spec/validators/unidom_spec.rb
|
98
|
+
require 'unidom/certificate/validators_rspec'
|
99
|
+
```
|
@@ -0,0 +1,24 @@
|
|
1
|
+
describe Unidom::Certificate::Certificating, 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
|
+
certificator_id: SecureRandom.uuid,
|
13
|
+
certificator_type: 'Unidom::Certificate::Certificator::Mock',
|
14
|
+
certificated_id: SecureRandom.uuid,
|
15
|
+
certificated_type: 'Unidom::Certificate::Certificated::Mock',
|
16
|
+
certification_id: SecureRandom.uuid,
|
17
|
+
certification_type: 'Unidom::Certificate::Certification::Mock'
|
18
|
+
}
|
19
|
+
|
20
|
+
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'rspec/models/unidom/certificate/certificating_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Certificate::Certificating'
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-certificate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: '2.1'
|
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-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
@@ -50,9 +50,13 @@ files:
|
|
50
50
|
- app/views/layouts/unidom/certificate/application.html.erb
|
51
51
|
- config/routes.rb
|
52
52
|
- db/migrate/20010201000000_create_unidom_certificatings.rb
|
53
|
+
- lib/rspec/models/unidom/certificate/certificating_spec.rb
|
53
54
|
- lib/tasks/certificate_tasks.rake
|
54
55
|
- lib/unidom/certificate.rb
|
55
56
|
- lib/unidom/certificate/engine.rb
|
57
|
+
- lib/unidom/certificate/models_rspec.rb
|
58
|
+
- lib/unidom/certificate/types_rspec.rb
|
59
|
+
- lib/unidom/certificate/validators_rspec.rb
|
56
60
|
- lib/unidom/certificate/version.rb
|
57
61
|
homepage: https://github.com/topbitdu/unidom-certificate
|
58
62
|
licenses:
|