Created
May 14, 2014 14:30
-
-
Save joecannatti/036a3a16488e1dda670a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
feature 'logged-in homepage', js: true do | |
# AWFUL HACK SO THAT WE DON'T GO INTO THE NEW VIEW AUTOMATICALLY | |
# IF THIS ISN'T HERE (TRY IT!), THE LOGIN TAKES THE USER TO THE | |
# /SHIPMENTS/SCHEDULE AUTOMATICALLY, WHICH THEN CALLS BRAINTREE FOR | |
# SOME INFORMATION. WE DON'T CARE ABOUT THAT YET, SO I AM BLOCKING IT | |
# OUT. WE WILL CARE ABOUT IT SOMEDAY SOON. | |
before :all do | |
@old_shipment = ShipmentsController | |
class ShipmentsController | |
def edit | |
redirect_to client_home_path | |
end | |
def new | |
redirect_to client_home_path | |
end | |
end | |
end | |
after :all do | |
ShipmentsController = @old_shipment | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does seem like a likely culprit! I don't think this will necessarily work, though. I tried a different strategy of putting the user into the experiment and am trying that out. That should get reset with the normal database resets.