unidom-shipment 0.7.3 → 0.7.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: af1c56a6bed650fa4c33c73f298ed1a86a9fdda5
4
- data.tar.gz: c777a2e462fcc195e9bee44e59829812dff6bf30
3
+ metadata.gz: 88b03d47586246a7c2e4c082b54b03b52a8cb7a0
4
+ data.tar.gz: 19ea8aef70dbc8bb6c85d0d180f93a6ddc81be58
5
5
  SHA512:
6
- metadata.gz: dbcaecf8462d8efca0a1fe6ce6ab50dc105d5c90c4d429703cf05b11308c13513af417b6f5c9239ee19d48925d02b70d68a2b2d9e80fa38264f388eda6c5ac07
7
- data.tar.gz: 58ee50e0e9857bc8beadefd72c5480376ff136333019463d2bac19cfed8c7d0e6e1ae26e766674b696434b8e76fd0ae351194bc46deb795d00269847c9d4e1d7
6
+ metadata.gz: 50c85ad2280df75e53df4b82f00209a0e7a671e425d70bd293f706891d046a3ab2550cb629e7dc01a1763e3e5ec363169d748e190461795a70bef1322f08b25c
7
+ data.tar.gz: 9e2996e6d3f163411fe0f51dcd983f9c468a305a15679d6ff7bbcd7432f18d515c5fcbdb0d4bc4ab9ff15734b1167a812d1a78d66258c54b99fab19e797afeb7
@@ -14,6 +14,18 @@ describe Unidom::Shipment::ShipmentPackage, type: :model do
14
14
 
15
15
  it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
16
16
 
17
+ shipment_package_item_1_attributes = {
18
+ shipment_item_id: SecureRandom.uuid,
19
+ quantity: 10.00
20
+ }
21
+
22
+ shipment_package_item_2_attributes = {
23
+ shipment_item_id: SecureRandom.uuid,
24
+ quantity: 20.00
25
+ }
26
+
27
+ it_behaves_like 'has_many', model_attributes, :items, Unidom::Shipment::ShipmentPackageItem, [ shipment_package_item_1_attributes, shipment_package_item_2_attributes ]
28
+
17
29
  end
18
30
 
19
31
  end
@@ -83,6 +83,22 @@ describe Unidom::Shipment::Shipment, type: :model do
83
83
  { actual_amount: '1_000_000_000.01' } => 1,
84
84
  { actual_amount: 1_000_000_000.01 } => 1
85
85
 
86
+ shipment_item_1_attributes = {
87
+ shipped_id: SecureRandom.uuid,
88
+ shipped_type: 'Unidom::Shipment::Shipped::Mock',
89
+ ordinal: 1,
90
+ quantity: 10.00
91
+ }
92
+
93
+ shipment_item_2_attributes = {
94
+ shipped_id: SecureRandom.uuid,
95
+ shipped_type: 'Unidom::Shipment::Shipped::Mock',
96
+ ordinal: 2,
97
+ quantity: 20.00
98
+ }
99
+
100
+ it_behaves_like 'has_many', model_attributes, :items, Unidom::Shipment::ShipmentItem, [ shipment_item_1_attributes, shipment_item_2_attributes ]
101
+
86
102
  it_behaves_like 'ProgneTapera::EnumCode', described_class.new(model_attributes), :conveyance, Unidom::Shipment::Conveyance
87
103
 
88
104
  end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Shipment
3
- VERSION = '0.7.3'.freeze
3
+ VERSION = '0.7.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-shipment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.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