Skip to content

Commit

Permalink
Re-define state machine before all state_machine_specs
Browse files Browse the repository at this point in the history
This is due to it being altered in the checkout_spec which runs before it
  • Loading branch information
radar committed Aug 28, 2012
1 parent d95f608 commit 1dd0227
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/spec/models/order/state_machine_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
describe Spree::Order do
let(:order) { Spree::Order.new }
before do
# Ensure state machine has been re-defined correctly
Spree::Order.define_state_machine!
# We don't care about this validation here
order.stub(:require_email)
end
Expand Down

0 comments on commit 1dd0227

Please sign in to comment.