unidom-requirement 0.2.2 → 0.3

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: 2a9357973b9e051311d66a533e69590d4f99722b
4
- data.tar.gz: de9c9680ff51ece680bd412a57d8ba78855f848e
3
+ metadata.gz: e7b53065cdcf538e94f941f83198fd87ee0a460d
4
+ data.tar.gz: 3925b7e9e99f78a2bcb138c1df5cc568ba0b83e2
5
5
  SHA512:
6
- metadata.gz: ff0f7b8731861dee8f338962f4c4815b9429c4d9ffe42845e9690d5674a0f5edef4df376478513a2558922cd53d0a7eb2401eb199a3ba1a36651407d60236237
7
- data.tar.gz: 140034e7dbc688a28f2fd0edacaf6f5ebe4eecdf002936f9bb6809dd55e06ad106598029ad0f6fad3a58d64bbf65d94c8cf072fb2af7425b03268d9f2c010bc3
6
+ metadata.gz: 28f8de54b172c59d2599e945cac004e117e878b2c17904ef1b41a534790cac9894e08af630589a76d62aeafdb1fa57c6010bfbb5b10bd508a9236b463a811453
7
+ data.tar.gz: 0c0539ee77a4be005765e169e8b652bb142224c2f1882a3584d0fe3d9607ccec6c072a62a392cf1e481e05fdceb04beb5b160ff398926f3aea78a4849b440fec
data/README.md CHANGED
@@ -57,3 +57,18 @@ Unidom::Common.configure do |options|
57
57
 
58
58
  end
59
59
  ```
60
+
61
+
62
+
63
+ ## RSpec examples
64
+
65
+ ```ruby
66
+ # spec/models/unidom_spec.rb
67
+ require 'unidom/requirement/models_rspec'
68
+
69
+ # spec/types/unidom_spec.rb
70
+ require 'unidom/requirement/types_rspec'
71
+
72
+ # spec/validators/unidom_spec.rb
73
+ require 'unidom/requirement/validators_rspec'
74
+ ```
@@ -0,0 +1,31 @@
1
+ describe Unidom::Requirement::Requirement, 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_requirement_id: SecureRandom.uuid,
13
+ superior_requirement_type: 'Unidom::Requirement::SuperiorRequirement::Mock',
14
+ requirer_id: SecureRandom.uuid,
15
+ requirer_type: 'Unidom::Requirement::Requirer::Mock',
16
+ required_id: SecureRandom.uuid,
17
+ required_type: 'Unidom::Requirement::Required::Mock',
18
+ facility_id: SecureRandom.uuid,
19
+ facility_type: 'Unidom::Requirement::Facility::Mock',
20
+ reason_id: SecureRandom.uuid,
21
+ reason_type: 'Unidom::Requirement::Reason::Mock',
22
+ estimated_budget: 2,
23
+ quantity: 1.00,
24
+ required_on: Date.current
25
+ }
26
+
27
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
28
+
29
+ end
30
+
31
+ end
@@ -0,0 +1 @@
1
+ require 'rspec/models/unidom/requirement/requirement_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Requirement::Requirement'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Requirement
3
- VERSION = '0.2.2'.freeze
3
+ VERSION = '0.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-requirement
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: '0.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-22 00:00:00.000000000 Z
11
+ date: 2017-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -48,9 +48,13 @@ files:
48
48
  - app/views/layouts/unidom/requirement/application.html.erb
49
49
  - config/routes.rb
50
50
  - db/migrate/20021101000000_create_unidom_requirements.rb
51
+ - lib/rspec/models/unidom/requirement/requirement_spec.rb
51
52
  - lib/tasks/requirement_tasks.rake
52
53
  - lib/unidom/requirement.rb
53
54
  - lib/unidom/requirement/engine.rb
55
+ - lib/unidom/requirement/models_rspec.rb
56
+ - lib/unidom/requirement/types_rspec.rb
57
+ - lib/unidom/requirement/validators_rspec.rb
54
58
  - lib/unidom/requirement/version.rb
55
59
  homepage: https://github.com/topbitdu/unidom-requirement
56
60
  licenses: