Skip to content

Instantly share code, notes, and snippets.

@joecannatti
Created May 14, 2014 14:30
Show Gist options
  • Save joecannatti/036a3a16488e1dda670a to your computer and use it in GitHub Desktop.
Save joecannatti/036a3a16488e1dda670a to your computer and use it in GitHub Desktop.
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
@ndp
Copy link

ndp commented May 14, 2014

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.

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