Created
May 25, 2012 17:59
-
-
Save adomokos/2789519 to your computer and use it in GitHub Desktop.
Would this make you angry?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yay Ruby!!