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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff3e1bf1c95e88a4ce384740d2ff736bb5bf5ba88ed8a8b8979428141999a862
|
4
|
+
data.tar.gz: c1d79a81b984601d618f78d8d22bc7c0817272ba3c1ea51bfd71be020e9ceee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe52b73f9e481f3ec1ac2adf57e2030035c7f5c67bf85b2e70c7f29baa180d3352904eb50afe0297252c7c29fd36da8e22dd30314324be72ed8f68bed5709d8c
|
7
|
+
data.tar.gz: 6b9f01e85c565659ff35fe16c8737bc5d1082bb92ad9c4c92daae751ba56c8a0854a407487f769280914b2f7cc4e17d5aba09e0fe79036ef7106a9a3e2eca897
|
data/CHANGELOG.md
CHANGED
@@ -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 :
|
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 :
|
28
|
+
render :hold_date
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
32
|
+
def hold_date
|
33
33
|
end
|
34
34
|
|
35
35
|
private
|
@@ -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.
|
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-
|
11
|
+
date: 2019-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea
|