Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Would this make you angry?
When /^I am on the Billing\/Shipping address page$/ do
# setting the order_id to 1 in the session
class Spree::BaseController < ApplicationController
prepend_before_filter :stub_order_id_in_session
def stub_order_id_in_session
session[:order_id] = 1
end
end
page.visit '/orders/XYZ12345'
end
@loveybot
Copy link

loveybot commented May 25, 2012

Yay Ruby!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment