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
require 'aptible/auth' | |
require 'aptible/api' | |
HANDLE = 'your-app' | |
EMAIL = '[email protected]' | |
PASSWORD = '' | |
KEY = 'FOOBAR' | |
FILE = '/path/to/file' | |
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
test "change_delivery_time will update the meal" do | |
bu = Fabricate(:business_unit) | |
annas = Fabricate(:annas, :business_unit => bu) | |
annas.delivery_areas.create(:zip => '02139', :minutes => 60) | |
annas.meals.create(:mon_start => '10:00', :mon_end => '15:00', :name => 'lunch') | |
annas.meals.create(:mon_start => '15:00', :mon_end => '20:00', :name => 'dinner') | |
delivery_at = { | |
:date => '2011-10-31', | |
:time => '13:00' |
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
new_order = reorder.xerox | |
new_order.save | |
current_order.destroy | |
current_order = new_order | |
current_order.status = 'open' | |
current_order.favorite = false | |
current_order.created_at = DateTime.now | |
current_order.updated_at = DateTime.now | |
current_order.mealsoft_response = nil | |
current_order.error_message = nil |
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
RuntimeError in MobileController#sign_out | |
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id | |
Rails.root: /var/local/web/dev.frontend/rails/releases/20111117184155 | |
Application Trace | Framework Trace | Full Trace | |
app/controllers/application_controller.rb:33:in `current_order=' | |
app/controllers/application_controller.rb:52:in `clear_current_order' | |
app/controllers/mobile_controller.rb:13:in `sign_out' | |
Request |