Skip to content

Instantly share code, notes, and snippets.

@DanBradbury
DanBradbury / jsfiddle
Last active Dec 21, 2015
list of useful jsfiddles for gameReviews
View jsfiddle
http://jsfiddle.net/MgcDU/6799/ (post archive)
http://jsfiddle.net/5uGpV/21/ (post show)
@DanBradbury
DanBradbury / gist:6301916
Created Aug 22, 2013
JS fiddle for option selection
View gist:6301916
http://jsfiddle.net/qqWwp/
View gist:6542425
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 Sep 14, 2013
League Champion List
View gist:6560271
Aatrox
Ahri
Akali
Alistar
Amumu
Anivia
Annie
Ashe
Blitzcrank
Brand
@DanBradbury
DanBradbury / gist:6582963
Created Sep 16, 2013
September 16 First thing in the morning run
View gist:6582963
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 Sep 16, 2013
@ noon rake test:units
View gist:6584976
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 Dec 23, 2015
part of rake test:functionals @1
View gist:6585752
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 Dec 23, 2015
Rake test:integration @1
View gist:6586083
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>
View gist:6596020
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 Dec 23, 2015
19th morning run
View gist:6627037
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'