spree_core 3.1.0.rc2 → 3.1.0.rc3

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
  SHA1:
3
- metadata.gz: 2021478be4f65fcaf33591300ec1f868d5e2fbc2
4
- data.tar.gz: 149faf040e1790e29d1d08a97bfc38753ebc2b01
3
+ metadata.gz: 7332a65fecf422eca443206a5ac81db7673245b5
4
+ data.tar.gz: 3998319e6c69fa2e2a60fac23a763c6edbd55110
5
5
  SHA512:
6
- metadata.gz: 4b9b8a1fd4613b943c2b2b2528e2f59097c7482c2beaf9a19429a9a8fc51bc270766613ab5b0704a0a47953409f3c1daa0701e2bb4b1aee029fd758a50523457
7
- data.tar.gz: 598aa342a0ed6c1a3943f809721b9698d2c251fd73bbe71c654b5ecbb9eef85c1423c320a66ebde8b09b431b3e59c1cecdf50c780a25ced54aab4a33d2648802
6
+ metadata.gz: 2918da963fa83b604b0605d7ff8e68359a348df533fe9775474a2c5793d70f27aa27ec405190e47b62a9d90d23040d5f7603f7f3f8d006e87c3c99e23ec636c1
7
+ data.tar.gz: 9ffb99aa4ac936e7a1fbe994700c595a6f92f128039e8765e7e56f700920a697bbf1c59eb1b7ec1e9c64cef9e91c34f38ca6d72d3a779793cc8717609a5818f0
@@ -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 }
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- "3.1.0.rc2"
3
+ "3.1.0.rc3"
4
4
  end
5
5
  end
@@ -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.rc2
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-05 00:00:00.000000000 Z
11
+ date: 2016-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant