solidus_backend 2.1.0.beta1 → 2.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_backend might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a0454504ef50055618ef2434bb9063969811fd9
|
4
|
+
data.tar.gz: 2f0eba1768def704dbfe65113bba3ce793039123
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81ccae29066e7b6531fd18b38359c598cdffdd844b4a7fb785a582aaea22980adb07221acb4385c6a7ae6a302ca21231c8e2eb61b53ad647bfcbffb33f519028
|
7
|
+
data.tar.gz: ac90ab4369382737d2754b870b04078f307c7d1de68ffca63882f0d4fe573a2455faefed84f18d89b140d3c909312eadd8473d5eda2ea7c28b3dfc5870650458
|
@@ -38,7 +38,7 @@ feature "Tiered Calculator Promotions" do
|
|
38
38
|
first_action_calculator = first_action.calculator
|
39
39
|
expect(first_action_calculator.class).to eq Spree::Calculator::TieredPercent
|
40
40
|
expect(first_action_calculator.preferred_base_percent).to eq 5
|
41
|
-
expect(first_action_calculator.preferred_tiers).to eq
|
41
|
+
expect(first_action_calculator.preferred_tiers).to eq(BigDecimal.new(100) => BigDecimal.new(10))
|
42
42
|
end
|
43
43
|
|
44
44
|
context "with an existing tiered flat rate calculator" do
|
@@ -49,7 +49,7 @@ feature "Tiered Calculator Promotions" do
|
|
49
49
|
|
50
50
|
action.calculator = Spree::Calculator::TieredFlatRate.new
|
51
51
|
action.calculator.preferred_base_amount = 5
|
52
|
-
action.calculator.preferred_tiers =
|
52
|
+
action.calculator.preferred_tiers = {100 => 10, 200 => 15, 300 => 20}
|
53
53
|
action.calculator.save!
|
54
54
|
|
55
55
|
visit spree.edit_admin_promotion_path(promotion)
|
@@ -63,7 +63,10 @@ feature "Tiered Calculator Promotions" do
|
|
63
63
|
within('#actions_container') { click_button "Update" }
|
64
64
|
|
65
65
|
calculator = promotion.actions.first.calculator
|
66
|
-
expect(calculator.preferred_tiers).to eq
|
66
|
+
expect(calculator.preferred_tiers).to eq({
|
67
|
+
BigDecimal.new(100) => 10,
|
68
|
+
BigDecimal.new(300) => 20
|
69
|
+
})
|
67
70
|
end
|
68
71
|
end
|
69
72
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.
|
4
|
+
version: 2.1.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.1.0.
|
19
|
+
version: 2.1.0.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.1.0.
|
26
|
+
version: 2.1.0.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: solidus_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.1.0.
|
33
|
+
version: 2.1.0.rc1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.1.0.
|
40
|
+
version: 2.1.0.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sass-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|