unidom-category 1.6.3 → 1.6.4

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: 8423dbd1e7303708f375a0e58a93cc98543b5c7a
4
- data.tar.gz: a4da60fec09dc2008e9a64f03ee17f65496b67f0
3
+ metadata.gz: 38c44b2f62ee1f832d41e913ffb95093963b4478
4
+ data.tar.gz: e66d461ea52778fecaa594f724463bd1b9e25d5c
5
5
  SHA512:
6
- metadata.gz: 59479915cc29a05a2ae89fb12b1c065da0cefd8142318bc5cba087f4172fe6e2c1c8934c33d375a234fdca770dc322e0ccd8e61ed1f09f7554ed8ffdd1cd69be
7
- data.tar.gz: c4e6032865e7f79ad8d0760003b3e3e34360043f50200dcf71fab50007f47a7289f2eb91fcfe087a419ecbf70faad5083ab74ef216f8f157505d545dc5c813b8
6
+ metadata.gz: 3a9af58754fe3d73f689ec46ecadbb312a3fd8c99cbf152044fda4ca172cbe2212f547990add2d3fe9c82172307af8c18a4f193b84d19147d2ef09e819ccada2
7
+ data.tar.gz: 6e574c34b7ef92618eb2daead194a470256fd58a82307fbc3f50b3b98b30ba0f73e97c9f54c62bb19a251dbeda9fd1956bd5866d05abef7925d55dfa040ecb58
@@ -16,6 +16,15 @@ describe Unidom::Category::Categorizing, type: :model do
16
16
 
17
17
  it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
18
18
 
19
+ category_attributes = {
20
+ scheme_id: SecureRandom.uuid,
21
+ code: 'XC',
22
+ name: 'Top Category',
23
+ abbreviation: 'TopCat'
24
+ }
25
+
26
+ it_behaves_like 'belongs_to', model_attributes, :category, Unidom::Category::Category, category_attributes
27
+
19
28
  end
20
29
 
21
30
  end
@@ -15,6 +15,16 @@ describe Unidom::Category::CategoryRollup, type: :model do
15
15
 
16
16
  it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
17
17
 
18
+ category_attributes = {
19
+ scheme_id: SecureRandom.uuid,
20
+ code: 'XC',
21
+ name: 'Top Category',
22
+ abbreviation: 'TopCat'
23
+ }
24
+
25
+ it_behaves_like 'belongs_to', model_attributes, :ancestor_category, Unidom::Category::Category, category_attributes
26
+ it_behaves_like 'belongs_to', model_attributes, :descendant_category, Unidom::Category::Category, category_attributes
27
+
18
28
  end
19
29
 
20
30
  end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Category
3
- VERSION = '1.6.3'.freeze
3
+ VERSION = '1.6.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-category
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.6.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-03-08 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common