Skip to content

Instantly share code, notes, and snippets.

View DanBradbury's full-sized avatar

Dan Bradbury DanBradbury

View GitHub Profile
@DanBradbury
DanBradbury / jsfiddle
Last active December 21, 2015 08:28
list of useful jsfiddles for gameReviews
http://jsfiddle.net/MgcDU/6799/ (post archive)
http://jsfiddle.net/5uGpV/21/ (post show)
@DanBradbury
DanBradbury / gist:6301916
Created August 22, 2013 00:28
JS fiddle for option selection
http://jsfiddle.net/qqWwp/
Finished in 218.152834286 seconds.
1) Error:
test_import_entity(EntitiesTest):
ActiveRecord::StatementInvalid: PG::SyntaxError: ERROR: syntax error at or near "["
LINE 1: ...on_groups"."entity_id" IN (1,61,62,63)) ORDER BY ["entities...
^
: SELECT "device_option_groups"."id" AS t0_r0, "device_option_groups"."name" AS t0_r1, "device_option_groups"."info" AS t0_r2, "device_option_groups"."entity_id" AS t0_r3, "device_option_groups"."created_by" AS t0_r4, "device_option_groups"."create_method" AS t0_r5, "device_option_groups"."created_on" AS t0_r6, "device_option_groups"."modified_by" AS t0_r7, "device_option_groups"."updated_on" AS t0_r8, "entities"."id" AS t1_r0, "entities"."entity_type_id" AS t1_r1, "entities"."name" AS t1_r2, "entities"."info" AS t1_r3, "entities"."enterprise" AS t1_r4, "entities"."lft" AS t1_r5, "entities"."rgt" AS t1_r6, "entities"."parent_id" AS t1_r7, "entities"."signature" AS t1_r8, "entities"."segment_type_id" AS t1_r9,
@DanBradbury
DanBradbury / gist:6560271
Created September 14, 2013 08:57
League Champion List
Aatrox
Ahri
Akali
Alistar
Amumu
Anivia
Annie
Ashe
Blitzcrank
Brand
@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
@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: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: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: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: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'