Skip to content

Instantly share code, notes, and snippets.

@ddinchev
Created May 19, 2014 12:32
Show Gist options
  • Select an option

  • Save ddinchev/75e764329947fc9a0a0d to your computer and use it in GitHub Desktop.

Select an option

Save ddinchev/75e764329947fc9a0a0d to your computer and use it in GitHub Desktop.
** Erubis 2.6.6
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................- destroying a user destroys its tracks (ERROR - 1)
1)
ActiveRecord::StatementInvalid in 'User#destroy destroying a user destroys its tracks'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:422:in `block (2 levels) in <top (required)>'
- should destroy the user (ERROR - 2)
2)
ActiveRecord::StatementInvalid in 'User#destroy should destroy the user'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:428:in `block (2 levels) in <top (required)>'
- destroying a user destroys its UserAsscociations (ERROR - 3)
3)
ActiveRecord::StatementInvalid in 'User#destroy destroying a user destroys its UserAsscociations'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:436:in `block (2 levels) in <top (required)>'
- destroying a user destroys its feedbacks (ERROR - 4)
4)
ActiveRecord::StatementInvalid in 'User#destroy destroying a user destroys its feedbacks'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:444:in `block (2 levels) in <top (required)>'
.- should remove tags when user is removed (ERROR - 5)
5)
ActiveRecord::StatementInvalid in 'User#destroy should remove tags when user is removed'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:458:in `block (3 levels) in <top (required)>'
spec/models/user_spec.rb:456:in `block (2 levels) in <top (required)>'
- destroys all emails (ERROR - 6)
6)
ActiveRecord::StatementInvalid in 'User#destroy destroys all emails'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:467:in `block (2 levels) in <top (required)>'
...........................................
Pending:
User#mute should return false when muting a victim that has already been muted yet (TODO)
spec/models/user_spec.rb:1939:in `block in <top (required)>'
User search should delete the solr document (TODO)
/vagrant/spec/shared/searchable_examples.rb:25:in `block in <top (required)>'
User#destroy destroying a user destroys its profile image (Not Yet Implemented)
spec/models/user_spec.rb:448:in `block in <top (required)>'
1)
ActiveRecord::StatementInvalid in 'User#destroy destroying a user destroys its tracks'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:422:in `block (2 levels) in <top (required)>'
2)
ActiveRecord::StatementInvalid in 'User#destroy should destroy the user'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:428:in `block (2 levels) in <top (required)>'
3)
ActiveRecord::StatementInvalid in 'User#destroy destroying a user destroys its UserAsscociations'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:436:in `block (2 levels) in <top (required)>'
4)
ActiveRecord::StatementInvalid in 'User#destroy destroying a user destroys its feedbacks'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:444:in `block (2 levels) in <top (required)>'
5)
ActiveRecord::StatementInvalid in 'User#destroy should remove tags when user is removed'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:458:in `block (3 levels) in <top (required)>'
spec/models/user_spec.rb:456:in `block (2 levels) in <top (required)>'
6)
ActiveRecord::StatementInvalid in 'User#destroy destroys all emails'
Mysql::Error: Table 'soundcloud_test.track_counts_week_201421' doesn't exist: INSERT INTO track_counts_week_201421 (track_id, favoritings) VALUES (206545269, -1) ON DUPLICATE KEY UPDATE favoritings=COALESCE(favoritings, 0) + -1;
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `rescue in log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract_adapter.rb:204:in `log'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/vagrant/lib/gem_ext/active_record/connection_adapters/extended_exception_classes.rb:16:in `execute_with_extended_exception_classes'
/vagrant/lib/gem_ext/active_record/connection_adapters/mysql_adapter.rb:60:in `execute_with_reconnect'
/vagrant/config/initializers/mysql_request_id.rb:8:in `execute_with_request_id'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/mysql_adapter.rb:339:in `update_sql'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.9/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update_with_query_dirty'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `block in update'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:434:in `block in on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:450:in `with'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:433:in `on_write'
/vagrant/vendor/bundle/ruby/1.9.1/gems/master_slave_adapter-1.1.2/lib/active_record/connection_adapters/master_slave_adapter.rb:158:in `update'
/vagrant/lib/count.rb:67:in `increment_totals'
/vagrant/lib/count.rb:73:in `increment_current_week'
/vagrant/lib/count.rb:59:in `increment_with_query_generator'
/vagrant/lib/count.rb:38:in `increment'
/vagrant/lib/count.rb:42:in `decrement'
/vagrant/app/processors/track_count_processor.rb:8:in `on_message'
/vagrant/spec/spec/helpers/events.rb:34:in `run_queue'
/vagrant/spec/spec/helpers/events.rb:18:in `block in run_queues'
/vagrant/spec/spec/helpers/events.rb:16:in `each'
/vagrant/spec/spec/helpers/events.rb:16:in `run_queues'
spec/models/user_spec.rb:467:in `block (2 levels) in <top (required)>'
Finished in 68.715798303 seconds
578 examples, 6 failures, 3 pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment