unidom-product 1.7.1 → 1.7.2

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: 72f86184228ad489bcee824496eb8ecf5e32920b
4
- data.tar.gz: 61495f81ad2df7b6614f7111b96531dc06a87220
3
+ metadata.gz: 705714307303adc4495b0e143863ee9165befcf1
4
+ data.tar.gz: 4e2198da1cda3564309c9edc928a3aaf06a8dadc
5
5
  SHA512:
6
- metadata.gz: 60fc0f3e61219b39a3113ed173876966d43dbc3d7c37aae73a7f6ceeb94bc5d86fa73882beb9c12ed21c0f1d59b888031b846eef4d5771406aa9e6b7dc864697
7
- data.tar.gz: fc7cb32d160b37a642e52507fa9979eb2e3a6eab49fe3cd9e390ce2e87de5890916184c746adf167d574eb32b6c89a67c54de70b1e168e57f68b66ac1f5176d9
6
+ metadata.gz: 8f9a88b8618f075c578042bbb553faf5b539d7a3efb1e528ba874cdae577b034528f9c96f6284582712d98a13adc32363e12655848a5249965a9da06f80c2d19
7
+ data.tar.gz: d9d65e9329932478aef2d795f85e803a0242e80e6d6ad1696d1ea37dc194a4f45b3d250e0347441f777ce091264dc1d8878cb2a9ea0e82cc1aad2ae5cf06f9f3
@@ -42,6 +42,17 @@ describe Unidom::Product::ProductAssociating, type: :model do
42
42
 
43
43
  it_behaves_like 'ProgneTapera::EnumCode', described_class.new(model_attributes), :product_association, Unidom::Product::ProductAssociation
44
44
 
45
+ product_attributes = {
46
+ name: 'Model X',
47
+ abbreviation: 'MX',
48
+ measurement_unit: 'car',
49
+ packing_norm: '1 car',
50
+ formset_code: 'WARE'
51
+ }
52
+
53
+ it_behaves_like 'belongs_to', model_attributes, :source, Unidom::Product::Product, product_attributes
54
+ it_behaves_like 'belongs_to', model_attributes, :target, Unidom::Product::Product, product_attributes
55
+
45
56
  end
46
57
 
47
58
  end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Product
3
- VERSION = '1.7.1'.freeze
3
+ VERSION = '1.7.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-product
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
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-02-19 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common