Skip to content

Commit

Permalink
Use Order Walkthrough to fix 'defaults to use billing address' test w…
Browse files Browse the repository at this point in the history
…ithin checkout_spec
  • Loading branch information
radar committed Nov 30, 2012
1 parent 9c6409c commit 490b29b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/spec/requests/checkout_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@

context "defaults to use billing address" do
before do
# Add country to shipping method's list so we can proceed to delivery
shipping_method = create(:shipping_method)
shipping_method.zone.zone_members << Spree::ZoneMember.create(:zoneable => country)

@order = create(:order_with_totals, :state => 'cart',
:shipping_method => shipping_method)
@order = OrderWalkthrough.up_to(:address)
@order.stub(:available_payment_methods => [ create(:bogus_payment_method, :environment => 'test') ])

visit spree.root_path
Expand Down

0 comments on commit 490b29b

Please sign in to comment.