workarea-ship_station 1.0.0 → 1.0.1

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: dab40a2886377073b6804cf0c61bb5a17340e4a1b873b40b8faf608c95b1b32d
4
- data.tar.gz: 4855ac55cbcbd188a59b4f592bab181af4d1f3f9c2c88e3ffc85776b1f1c99f8
3
+ metadata.gz: ff3e1bf1c95e88a4ce384740d2ff736bb5bf5ba88ed8a8b8979428141999a862
4
+ data.tar.gz: c1d79a81b984601d618f78d8d22bc7c0817272ba3c1ea51bfd71be020e9ceee0
5
5
  SHA512:
6
- metadata.gz: f647bcf5a621619b560b23a925d90774b42cb3bdb1c8ddd13624e849e29061e1b236153865accc5e2a745c99537e69cad906e4d019ab84a0664f72ad52462778
7
- data.tar.gz: 627dee053fb03fd07316dd6e2dd1d395b023dcfbb2f23de70de9ba2de4d16f8ad2fcb15d798943c7d5947ebffb2ee456b05d34bbcf0c73b257b8e116d0a6654f
6
+ metadata.gz: fe52b73f9e481f3ec1ac2adf57e2030035c7f5c67bf85b2e70c7f29baa180d3352904eb50afe0297252c7c29fd36da8e22dd30314324be72ed8f68bed5709d8c
7
+ data.tar.gz: 6b9f01e85c565659ff35fe16c8737bc5d1082bb92ad9c4c92daae751ba56c8a0854a407487f769280914b2f7cc4e17d5aba09e0fe79036ef7106a9a3e2eca897
@@ -1,3 +1,13 @@
1
+ Workarea Ship Station 1.0.1 (2019-11-26)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Render the correct view when the set hold date api response is unsucessful.
5
+
6
+ SHIPSTATION-2
7
+ Jeff Yucis
8
+
9
+
10
+
1
11
  Workarea Ship Station 1.0.0 (2019-10-30)
2
12
  --------------------------------------------------------------------------------
3
13
 
@@ -11,7 +11,7 @@ module Workarea
11
11
  redirect_to order_path(@order)
12
12
  else
13
13
  flash[:error] = t('workarea.admin.orders.placed_on_hold_error')
14
- render :select_hold_date
14
+ render :hold_date
15
15
  end
16
16
  end
17
17
 
@@ -25,11 +25,11 @@ module Workarea
25
25
  redirect_to order_path(@order)
26
26
  else
27
27
  flash[:error] = t('workarea.admin.orders.clear_on_hold_error')
28
- render :select_hold_date
28
+ render :hold_date
29
29
  end
30
30
  end
31
31
 
32
- def select_hold_date
32
+ def hold_date
33
33
  end
34
34
 
35
35
  private
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module ShipStation
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.0.1".freeze
4
4
  end
5
5
  end
@@ -20,6 +20,22 @@ module Workarea
20
20
  assert(order.ship_station_on_hold_until.present?)
21
21
  end
22
22
 
23
+ def test_setting_order_on_hold_error
24
+ order = create_placed_order
25
+
26
+ hold_date = "xxxxx"
27
+ patch admin.save_hold_date_order_path(order),
28
+ params: {
29
+ hold_until: hold_date
30
+ }
31
+
32
+ order.reload
33
+
34
+ refute(order.ship_station_on_hold?)
35
+ refute(order.ship_station_on_hold_until.present?)
36
+ end
37
+
38
+
23
39
  def test_clearing_order_hold
24
40
  order = create_placed_order(ship_station_on_hold_until: 1.day.from_now)
25
41
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-ship_station
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Yucis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-30 00:00:00.000000000 Z
11
+ date: 2019-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea