Skip to content

Instantly share code, notes, and snippets.

View DanBradbury's full-sized avatar
:shipit:
Doing the work

Dan Bradbury DanBradbury

:shipit:
Doing the work
View GitHub Profile
dan@app05:/nutricate/production/app$ git status
# On branch deploy
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: admin/config/email.yml
# modified: admin/config/environments/admin.rb
# modified: admin/config/initializers/recaptcha.rb
# modified: instance/init_scripts/admin
Processing MessagesController#update (for 33.33.33.1 at 2013-09-25 12:24:13) [PUT]
Parameters: {"group"=>"8", "message"=>{"end_date"=>"", "value"=>"", "priority"=>"3", "pos_id"=>"", "name"=>"10% Off Any Catering Order Over $50", "start_offset"=>"1", "frame"=>"0", "barcode_print_string"=>"0", "image_placement"=>"1", "barcode_string"=>"", "barcode_placement"=>"1", "include_barcode"=>"0", "duration"=>"30", "image_id"=>"2055", "text"=>"", "redeem_suppress"=>"0", "duration_round"=>"None", "answer"=>"", "include_pool"=>"1", "include_info"=>"0", "duration_unit"=>"Days", "dynamic_date"=>"1", "answer_inverted"=>"0", "info"=>"", "embedded_text"=>"<p>{{beg_date}} - {{exp_date}}</p>", "include_answer"=>"0", "optional"=>"0", "embedded_text_2"=>"<p>{{receipt.header_address1}}</p>", "message_type_id"=>"4", "barcode_height"=>"24", "start_date"=>"", "string_rules_attributes"=>{"0"=>{"string_type"=>"", "comparison"=>"between", "max_value"=>"", "min_value"=>"", "string_value_id"=>"", "printable"=>"0"}}, "cost"=>"", "barcode_f
Finished in 54.126982387 seconds.
1) Failure:
test_post(ApiIntegrationTest) [test/integration/api_integration_test.rb:131]:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>error</status>
<error>undefined method `name' for nil:NilClass</error>
</response>
.
@DanBradbury
DanBradbury / gist:6692988
Created September 24, 2013 23:51
Current run
Processing MessagesController#update (for 33.33.33.1 at 2013-09-24 16:51:04) [PUT]
Parameters: {"group"=>"8", "string_value"=>{"name"=>"", "pos_profile_id"=>"5"}, "search"=>{"search_name"=>""}, "controller"=>"messages", "message"=>{"name"=>"3 Regular Footlong Subs for 14.99 [after 4PM & Weekends]", "image_id"=>"2102", "frame"=>"0", "value"=>"", "priority"=>"3", "barcode_height"=>"24", "include_barcode"=>"0", "duration_unit"=>"Days", "answer"=>"", "redeem_suppress"=>"0", "barcode_placement"=>"1", "embedded_text"=>"<p>{{beg_date}} - {{exp_date}}</p>", "answer_inverted"=>"0", "string_rules_attributes"=>{"0"=>{"comparison"=>"between", "max_value"=>"", "string_type"=>"", "string_value_id"=>"", "printable"=>"0", "min_value"=>""}}, "start_date"=>"", "optional"=>"0", "barcode_format_id"=>"1", "end_date"=>"", "start_offset"=>"1", "text"=>"", "message_type_id"=>"4", "barcode_string"=>"", "image_placement"=>"1", "include_info"=>"0", "dynamic_date"=>"1", "cost"=>"", "include_pool"=>"1", "pos_id"=>"", "info"=>"", "barco
@DanBradbury
DanBradbury / gist:6627037
Last active December 23, 2015 11:18
19th morning run
1) Failure:
test_refresh_list(AlertsControllerTest) [test/functional/alerts_controller_test.rb:88]:
<0> expected but was
<2>.
2) Error:
test_create(BulletinsControllerTest):
RuntimeError: ERROR CREATING OBJECT
test/test_helper.rb:216:in `check_obj'
@DanBradbury
DanBradbury / gist:6596020
Created September 17, 2013 15:35
Early morning
Finished in 642.351675781 seconds.
1) Error:
test_refresh_list(AlertsControllerTest):
ActiveRecord::StatementInvalid: PG::SyntaxError: ERROR: syntax error at or near "["
LINE 1: SELECT ["alert_history.id"] FROM "alert_history" WHERE (((al...
^
: SELECT ["alert_history.id"] FROM "alert_history" WHERE (((alert_history.code IN ('ITEM_MISMATCH')) AND (alert_history.id IN (9))) AND (alert_history.entity_id IN (1,2,3,6))) ORDER BY alert_history.id
app/models/ar_helpers.rb:525:in `block in list_all_writable_foreign'
app/models/ar_helpers.rb:524:in `list_all_writable_foreign'
@DanBradbury
DanBradbury / gist:6586083
Last active December 23, 2015 05:19
Rake test:integration @1
Finished in 51.513995167 seconds.
1) Failure:
test_show(ApiIntegrationTest) [test/integration/api_integration_test.rb:518]:
response did not match regex: <?xml version="1.0" encoding="UTF-8"?>
<response>
<status>ok</status>
<item>
<name>Tuna Melt Deliciousness</name>
<print-text>TUNA MELT</print-text>
@DanBradbury
DanBradbury / gist:6585752
Last active December 23, 2015 05:18
part of rake test:functionals @1
Finished in 659.519414904 seconds.
1) Error:
test_refresh_list(AlertsControllerTest):
ActiveRecord::StatementInvalid: PG::SyntaxError: ERROR: syntax error at or near "["
LINE 1: SELECT ["alert_history.id"] FROM "alert_history" WHERE (((al...
^
: SELECT ["alert_history.id"] FROM "alert_history" WHERE (((alert_history.code IN ('ITEM_MISMATCH','ITEM_MISMATCH')) AND (alert_history.id IN (9))) AND (alert_history.entity_id IN (1,2,3,6))) ORDER BY alert_history.id
app/models/ar_helpers.rb:525:in `block in list_all_writable_foreign'
app/models/ar_helpers.rb:524:in `list_all_writable_foreign'
@DanBradbury
DanBradbury / gist:6584976
Created September 16, 2013 19:00
@ noon rake test:units
Finished in 207.935387699 seconds.
1) Error:
test_download_feed(RssReaderTestCase):
Errno::ENOENT: No such file or directory - /tmp/feeds/__nutricate__vagrant__admin__test__fixtures__files__www.receipt.com__feeds__news.xml
/nutricate/vagrant/admin/test/unit/rss_reader_test.rb:39:in `initialize'
/nutricate/vagrant/admin/test/unit/rss_reader_test.rb:39:in `open'
/nutricate/vagrant/admin/test/unit/rss_reader_test.rb:39:in `test_download_feed'
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/activesupport-2.3.15/lib/active_support/testing/setup_and_teardown.rb:62:in `run'
@DanBradbury
DanBradbury / gist:6582963
Created September 16, 2013 16:24
September 16 First thing in the morning run
Finished in 213.104354756 seconds.
1) Error:
test_import_entity(EntitiesTest):
ActiveRecord::StatementInvalid: PG::SyntaxError: ERROR: syntax error at or near "["
LINE 1: ...t_formats"."entity_id" IN (1,61,62,63)) ORDER BY ["entities...
^
: SELECT "receipt_formats"."id" AS t0_r0, "receipt_formats"."name" AS t0_r1, "receipt_formats"."info" AS t0_r2, "receipt_formats"."entity_id" AS t0_r3, "receipt_formats"."created_by" AS t0_r4, "receipt_formats"."create_method" AS t0_r5, "receipt_formats"."created_on" AS t0_r6, "receipt_formats"."modified_by" AS t0_r7, "receipt_formats"."updated_on" AS t0_r8, "receipt_formats"."activate_at" AS t0_r9, "receipt_formats"."version_id" AS t0_r10, "receipt_formats"."status_id" AS t0_r11, "receipt_formats"."max_messages" AS t0_r12, "receipt_formats"."dv_base" AS t0_r13, "receipt_formats"."dv_base_alt" AS t0_r14, "receipt_formats"."min_messages" AS t0_r15, "receipt_formats"."max_length" AS t0_r16, "receipt_formats"."mi