workarea-api-storefront 4.5.3 → 4.5.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
  SHA256:
3
- metadata.gz: f4182b7a64c3cc07d0037006168b328d449d10dcd2d0996172dc28625002213b
4
- data.tar.gz: 0ef9a8164fcf3ee9aceef9c7b79f3e51a571b53024006793edfdc6c88a0cbffb
3
+ metadata.gz: 46c493a6520203dddfec3bcc9ae914a661040f550c3bc896c2650f2a7756e8f3
4
+ data.tar.gz: a20ce0a23aa70ad2ca94331a5c14dcbe28e76199428d35a4a34d384a8e1efd56
5
5
  SHA512:
6
- metadata.gz: cee629189a29f5e53030365a9613da41ec090f16ffdd1d961a7067b1ed0db662000c2737c03a8d734f2ad4ea7b91a028b4a850e0cab52dabee23eb5854ddf785
7
- data.tar.gz: 4048f2551b1ff41d912f45eb30f8e05fc70a354d1423f2e45a775ca7282a05680064e2a5c29d840902f7639d96d17c8f8e5d1c24a1a2f058539dbd14de58d356
6
+ metadata.gz: 80f9aeca36c57411fbade7179e0029f572fa7af309177b936b3153dcbc5bb36bd83bc5bb35e951770f70130804e72c2581fc2b0b874499dd1549e3f59cba533b
7
+ data.tar.gz: f5bba158201651ab1bd964cf494363f9e2ccedc0ab44529af467c50b9b0d7eea0a3adcdb3dc48fe588055d16defd9b8de9360a55e2cb7500e932b7713fb8a443
@@ -85,6 +85,27 @@ module Workarea
85
85
  end
86
86
  end
87
87
 
88
+ def test_and_document_update_failure
89
+ description 'Failure to update a checkout'
90
+ route storefront_api.checkout_path(':id')
91
+ explanation <<-EOS
92
+ This is an example of what occurs when you fail to send in the correct parameters for your checkout.
93
+ EOS
94
+
95
+ record_request do
96
+ patch storefront_api.checkout_path(@order),
97
+ as: :json,
98
+ params: {
99
+ email: 'susanb@workarea.com',
100
+ shipping_address: address.except(:first_name),
101
+ billing_address: address.except(:last_name),
102
+ shipping_service: 'Express'
103
+ }
104
+
105
+ assert_equal(422, response.status)
106
+ end
107
+ end
108
+
88
109
  def test_and_document_complete
89
110
  description 'Completing a checkout'
90
111
  route storefront_api.complete_checkout_path(':id')
@@ -72,7 +72,7 @@ module Workarea
72
72
  }
73
73
  }
74
74
 
75
- assert_equal(200, response.status)
75
+ assert_equal(422, response.status)
76
76
  end
77
77
  end
78
78
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-api-storefront
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.3
4
+ version: 4.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-26 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
274
  - !ruby/object:Gem::Version
275
275
  version: '0'
276
276
  requirements: []
277
- rubygems_version: 3.0.6
277
+ rubygems_version: 3.0.3
278
278
  signing_key:
279
279
  specification_version: 4
280
280
  summary: Storefront JSON REST API for the Workarea Commerce Platform