spree_core 3.1.0.rc2 → 3.1.0.rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/spree/order.rb +0 -1
- data/lib/spree/core/version.rb +1 -1
- data/spec/models/spree/order/checkout_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7332a65fecf422eca443206a5ac81db7673245b5
|
4
|
+
data.tar.gz: 3998319e6c69fa2e2a60fac23a763c6edbd55110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2918da963fa83b604b0605d7ff8e68359a348df533fe9775474a2c5793d70f27aa27ec405190e47b62a9d90d23040d5f7603f7f3f8d006e87c3c99e23ec636c1
|
7
|
+
data.tar.gz: 9ffb99aa4ac936e7a1fbe994700c595a6f92f128039e8765e7e56f700920a697bbf1c59eb1b7ec1e9c64cef9e91c34f38ca6d72d3a779793cc8717609a5818f0
|
data/app/models/spree/order.rb
CHANGED
@@ -125,7 +125,6 @@ module Spree
|
|
125
125
|
with_options presence: true do
|
126
126
|
validates :number, length: { maximum: 32, allow_blank: true }, uniqueness: { allow_blank: true }
|
127
127
|
validates :email, length: { maximum: 254, allow_blank: true }, email: { allow_blank: true }, if: :require_email
|
128
|
-
validates :state, inclusion: { in: state_machine.states.map { |state| state.name.to_s }, allow_blank: true }
|
129
128
|
validates :item_count, numericality: { greater_than_or_equal_to: 0, less_than: 2**31, only_integer: true, allow_blank: true }
|
130
129
|
end
|
131
130
|
validates :payment_state, inclusion: { in: PAYMENT_STATES, allow_blank: true }
|
data/lib/spree/core/version.rb
CHANGED
@@ -605,6 +605,10 @@ describe Spree::Order, :type => :model do
|
|
605
605
|
order = Spree::Order.new
|
606
606
|
expect(order.checkout_steps).to eq(%w(new_step before_address address delivery complete))
|
607
607
|
end
|
608
|
+
|
609
|
+
it 'goes through checkout without raising error' do
|
610
|
+
expect{ OrderWalkthrough.up_to(:complete) }.to_not raise_error
|
611
|
+
end
|
608
612
|
end
|
609
613
|
|
610
614
|
context "after" do
|
@@ -618,6 +622,10 @@ describe Spree::Order, :type => :model do
|
|
618
622
|
order = Spree::Order.new
|
619
623
|
expect(order.checkout_steps).to eq(%w(new_step address after_address delivery complete))
|
620
624
|
end
|
625
|
+
|
626
|
+
it 'goes through checkout without raising error' do
|
627
|
+
expect{ OrderWalkthrough.up_to(:complete) }.to_not raise_error
|
628
|
+
end
|
621
629
|
end
|
622
630
|
end
|
623
631
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|