Skip to content

Instantly share code, notes, and snippets.

@adomokos
Created May 25, 2012 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adomokos/2789519 to your computer and use it in GitHub Desktop.
Save adomokos/2789519 to your computer and use it in GitHub Desktop.
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

Yay Ruby!!

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