unidom-accession 2.2.5 → 2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4880d1744c491d246c467cd4cfee61a8dc29e159
4
- data.tar.gz: c10093dae73f65ba605f5d327e13d824880bfc28
3
+ metadata.gz: 47d8125522a52f78315a477b57d999fbfedc8494
4
+ data.tar.gz: e49172c358917ebfd71f56aea682980b84cbb3d3
5
5
  SHA512:
6
- metadata.gz: 298602bf713cb6342fb58f6ac1f48799dd66594a8af4bf755a70bfd6563304186d69c8f0a69b5107d9dfc4bdd08cf3576e0f4081abd0f08da1f223a375b62f90
7
- data.tar.gz: 1e521fd2fa112780573592212f731ab262e7cf614c78d1677df742e03dce0391a0377933de776c57e1330da7c795dab4515f884f4778a49ae205b4d298306487
6
+ metadata.gz: e38a27c0ca70300a90d8c1bcb829b8d775a22c48a3fc4485b5d7ed331c0557e333c97f827d7eebc9d62d0e6f9c31f22a6e7fd070ff60385b3c1382c61aab1783
7
+ data.tar.gz: 38e3d6e71c1e51426bbcc5ebecb8ea9b6eaadc1a67025edbbb6dc381bd140fc740b9afb0a0faca50ae55c4f2e08318cc464c672ab6b201ea375e4fdeb860cf26
data/README.md CHANGED
@@ -96,3 +96,18 @@ Unidom::Common.configure do |options|
96
96
 
97
97
  end
98
98
  ```
99
+
100
+
101
+
102
+ ## RSpec examples
103
+
104
+ ```ruby
105
+ # spec/models/unidom_spec.rb
106
+ require 'unidom/accession/models_rspec'
107
+
108
+ # spec/types/unidom_spec.rb
109
+ require 'unidom/accession/types_rspec'
110
+
111
+ # spec/validators/unidom_spec.rb
112
+ require 'unidom/accession/validators_rspec'
113
+ ```
@@ -0,0 +1,45 @@
1
+ describe Unidom::Accession::PostFulfillment, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ =begin
10
+ context '.validates' do
11
+
12
+ model_attributes = { name: 'Tim' }
13
+
14
+ it_behaves_like 'validates', model_attributes, :name,
15
+ { } => 0,
16
+ { name: nil } => 2,
17
+ { name: '' } => 2,
18
+ { name: 'A' } => 1,
19
+ { name: 'AA' } => 0,
20
+ { name: 'AAA' } => 0,
21
+ { name: '0' } => 1,
22
+ { name: '00' } => 0,
23
+ { name: '000' } => 0,
24
+ { name: 0 } => 1,
25
+ { name: 'A'*(described_class.columns_hash['name'].limit-1) } => 0,
26
+ { name: 'A'*described_class.columns_hash['name'].limit } => 0,
27
+ { name: 'A'*(described_class.columns_hash['name'].limit+1) } => 1
28
+
29
+ end
30
+ =end
31
+
32
+ context do
33
+
34
+ model_attributes = {
35
+ fulfilled_id: SecureRandom.uuid,
36
+ fulfilled_type: 'Unidom::Accession::Fulfilled::Mock',
37
+ fulfiller_id: SecureRandom.uuid,
38
+ fulfiller_type: 'Unidom::Accession::Fulfiller::Mock'
39
+ }
40
+
41
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
42
+
43
+ end
44
+
45
+ end
@@ -0,0 +1 @@
1
+ require 'rspec/models/unidom/accession/post_fulfillment_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Accession::PostFulfillment'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Accession
3
- VERSION = '2.2.5'.freeze
3
+ VERSION = '2.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-accession
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: '2.3'
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-21 00:00:00.000000000 Z
11
+ date: 2017-01-29 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/accession/application.html.erb
51
51
  - config/routes.rb
52
52
  - db/migrate/20040501000000_create_unidom_post_fulfillments.rb
53
+ - lib/rspec/models/unidom/accession/post_fulfillment_spec.rb
53
54
  - lib/tasks/accession_tasks.rake
54
55
  - lib/unidom/accession.rb
55
56
  - lib/unidom/accession/engine.rb
57
+ - lib/unidom/accession/models_rspec.rb
58
+ - lib/unidom/accession/types_rspec.rb
59
+ - lib/unidom/accession/validators_rspec.rb
56
60
  - lib/unidom/accession/version.rb
57
61
  homepage: https://github.com/topbitdu/unidom-accession
58
62
  licenses: