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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38c44b2f62ee1f832d41e913ffb95093963b4478
|
4
|
+
data.tar.gz: e66d461ea52778fecaa594f724463bd1b9e25d5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|