Created
October 17, 2018 23:20
-
-
Save botanicus/789e3f12a615a059f9f6495d09ed06d5 to your computer and use it in GitHub Desktop.
This file contains 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
byc-api 2.1.5 % be rake spec [0] | |
Patching ActiveRecord::Relation#or. This might blow up | |
/home/botanicus/.rubies/ruby-2.1.5/bin/ruby -I/home/botanicus/.gem/ruby/2.1.5/gems/rspec-core-3.4.4/lib:/home/botanicus/.gem/ruby/2.1.5/gems/rspec-support-3.4.1/lib /home/botanicus/.gem/ruby/2.1.5/gems/rspec-core-3.4.4/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb | |
Patching ActiveRecord::Relation#or. This might blow up | |
..............................................................§§...................................................................................................................................................................................................................................FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF......FFFFFFFFFFFFFFFFFFFFFF.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. | |
Failures: | |
1) PermissionsController#destroy when functional unit not found should display the error | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:08', '2018-10-17 21:19:08', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
2) PermissionsController#destroy when permission not found should return a 400 status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:08', '2018-10-17 21:19:08', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
3) PermissionsController#destroy when permission not found should display the error | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:09', '2018-10-17 21:19:09', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
4) PermissionsController#cascade_destroy when successful | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:09', '2018-10-17 21:19:09', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
5) PermissionsController#cascade_destroy when unsuccessful | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:09', '2018-10-17 21:19:09', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
6) PermissionsController#cascade_destroy behaves like unauthorized_request when unauthorized status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:09', '2018-10-17 21:19:09', 1, 2, 0) | |
Shared Example Group: :unauthorized_request called from ./spec/controllers/permissions_controller_spec.rb:524 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
7) PermissionsController#cascade_destroy behaves like unauthenticated_request status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:09', '2018-10-17 21:19:09', 1, 2, 0) | |
Shared Example Group: :unauthenticated_request called from ./spec/controllers/permissions_controller_spec.rb:525 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
8) PubsubController#publication when authorized status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:09', '2018-10-17 21:19:09', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
9) PubsubController#publication behaves like unauthorized_request when unauthorized status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:10', '2018-10-17 21:19:10', 1, 2, 0) | |
Shared Example Group: :unauthorized_request called from ./spec/controllers/pubsub_controller_spec.rb:18 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
10) QuestionsController#index when an administrator should return all questions for that custom form | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:10', '2018-10-17 21:19:10', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
11) QuestionsController#index when an administrator should not return questions not associated with that form | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:10', '2018-10-17 21:19:10', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
12) QuestionsController#index when an administrator should respond with JSON | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:10', '2018-10-17 21:19:10', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
13) QuestionsController#index when user is not an admin for that functional unit should allow them to view question up the hierarchy | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:10', '2018-10-17 21:19:10', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
14) QuestionsController#index when user is not an admin for that functional unit should not allow them to view questions for cf's not in hierarchy | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:10', '2018-10-17 21:19:10', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
15) QuestionsController#index when unauthenticated user should have status 401 | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:10', '2018-10-17 21:19:10', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
16) QuestionsController#show when any user should display the questions for that form | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:11', '2018-10-17 21:19:11', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
17) QuestionsController#show when any user should respond with JSON | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:11', '2018-10-17 21:19:11', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
18) QuestionsController#show when accessing from /custom_forms/:id when any user should allow them to access | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:11', '2018-10-17 21:19:11', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
19) QuestionsController#show when not found should return 404 error | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:11', '2018-10-17 21:19:11', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
20) QuestionsController#show when unauthenticated user should return 401 error | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:11', '2018-10-17 21:19:11', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
21) QuestionsController#create when successful should create a new question | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:11', '2018-10-17 21:19:11', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
22) QuestionsController#create when successful should respond with question JSON | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:12', '2018-10-17 21:19:12', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
23) QuestionsController#create with unauthorized user should respond with 403 | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:12', '2018-10-17 21:19:12', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
24) QuestionsController#create when unauthenticated user should respond with 401 | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:12', '2018-10-17 21:19:12', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
25) QuestionsController#update when successful should update question attributes | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:13', '2018-10-17 21:19:13', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
26) QuestionsController#update when successful should fill in last_update_by | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:13', '2018-10-17 21:19:13', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
27) QuestionsController#update when successful should respond with the JSON | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:13', '2018-10-17 21:19:13', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
28) QuestionsController#update with unauthorized user should respond with 403 | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:13', '2018-10-17 21:19:13', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
29) QuestionsController#update when unauthenticated user should respond with 403 | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:13', '2018-10-17 21:19:13', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
30) QuestionsController#reorder when successful when admin of that question's cust. form's fu should allow to reorder | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:13', '2018-10-17 21:19:13', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
31) QuestionsController#reorder when successful when admin of that question's cust. form's fu should reverse the order of ids | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:14', '2018-10-17 21:19:14', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
32) QuestionsController#reorder when successful when committee manager of that cust. form's fu should allow to reorder | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:14', '2018-10-17 21:19:14', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
33) QuestionsController#reorder when not admin of that functional unit should return 403 error | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:14', '2018-10-17 21:19:14', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
34) QuestionsController#destroy when lfu admin should allow to destroy lfu questions that it is admin of | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:14', '2018-10-17 21:19:14', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
35) QuestionsController#destroy when lfu admin should not allow an lfu admin to destroy bfu questions | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:14', '2018-10-17 21:19:14', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
36) QuestionsController#destroy when lfu admin should not allow an lfu admin to destroy institution questions | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:14', '2018-10-17 21:19:14', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
37) QuestionsController#destroy when bfu admin should allow a bfu admin to destroy bfu custom questions | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:15', '2018-10-17 21:19:15', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
38) QuestionsController#destroy when bfu admin should allow a bfu to destroy lfu questions | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:15', '2018-10-17 21:19:15', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
39) QuestionsController#destroy when bfu admin should not allow a bfu admin to destroy inst cust. questions | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:15', '2018-10-17 21:19:15', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
40) QuestionsController#destroy when inst admin should allow an inst admin to destroy institution questions | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:15', '2018-10-17 21:19:15', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
41) QuestionsController#destroy when inst admin should allow an inst admin to destroy bfu questions | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:15', '2018-10-17 21:19:15', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
42) QuestionsController#destroy when inst admin should allow an inst admin to destroy lfu questions | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:15', '2018-10-17 21:19:15', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
43) QuestionsController#destroy when not admin should not allow to destroy questions | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:16', '2018-10-17 21:19:16', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
44) QuestionsController#destroy when unauthenticated user should respond with 401 | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:16', '2018-10-17 21:19:16', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
45) ReportsController#all_custom_form_changes when requesting json should respond with the json | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:16', '2018-10-17 21:19:16', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
46) ReportsController#all_custom_form_changes when requesting csv should respond with the csv | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:16', '2018-10-17 21:19:16', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
47) ReportsController#generate when authorized user calls report dispatcher | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:16', '2018-10-17 21:19:16', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
48) ReportsController#generate behaves like unauthorized_request when unauthorized status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:17', '2018-10-17 21:19:17', 1, 2, 0) | |
Shared Example Group: :unauthorized_request called from ./spec/controllers/reports_controller_spec.rb:57 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
49) ReportsController#generate behaves like unauthenticated_request status | |
Failure/Error: @superuser = FactoryGirl.create(:user, email: "[email protected]", pid: "1") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.users' doesn't exist: SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '[email protected]' LIMIT 1 | |
Shared Example Group: :unauthenticated_request called from ./spec/controllers/reports_controller_spec.rb:58 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:221:in `exec_query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:38:in `select_one' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:43:in `select_value' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation/finder_methods.rb:302:in `exists?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations/uniqueness.rb:34:in `validate_each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:151:in `block in validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `public_send' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `block in make_lambda' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `block in simple' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `block in call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validate_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:399:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:338:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:58:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:83:in `perform_validations' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:16:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.users' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
50) ReportsController#generate_facets when authorized user calls report dispatcher | |
Failure/Error: @superuser = FactoryGirl.create(:user, email: "[email protected]", pid: "1") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table definition has changed, please retry transaction: SELECT 1 AS one FROM `users` WHERE `users`.`pid` = BINARY '1' LIMIT 1 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:221:in `exec_query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:38:in `select_one' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:43:in `select_value' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation/finder_methods.rb:302:in `exists?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations/uniqueness.rb:34:in `validate_each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:151:in `block in validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `public_send' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `block in make_lambda' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `block in simple' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `block in call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validate_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:399:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:338:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:58:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:83:in `perform_validations' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:16:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table definition has changed, please retry transaction | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
51) SavedSearchesController#for_object behaves like unauthenticated_request status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:40', '2018-10-17 21:19:40', 1, 2, 0) | |
Shared Example Group: :unauthenticated_request called from ./spec/controllers/saved_searches_controller_spec.rb:42 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
52) SavedSearchesController#create when successful should create the saved search | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:40', '2018-10-17 21:19:40', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
53) SavedSearchesController#create when successful should assign it to the correct user and correct object id | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:40', '2018-10-17 21:19:40', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
54) SavedSearchesController#create when successful when no scoped object id is entered should set scoped object id to 0 | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:41', '2018-10-17 21:19:41', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
55) SavedSearchesController#create behaves like unauthenticated_request status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:41', '2018-10-17 21:19:41', 1, 2, 0) | |
Shared Example Group: :unauthenticated_request called from ./spec/controllers/saved_searches_controller_spec.rb:84 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
56) SavedSearchesController#destroy when successful should destroy the saved search | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:41', '2018-10-17 21:19:41', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
57) SavedSearchesController#destroy behaves like unauthenticated_request status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:41', '2018-10-17 21:19:41', 1, 2, 0) | |
Shared Example Group: :unauthenticated_request called from ./spec/controllers/saved_searches_controller_spec.rb:101 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
58) SavedSearchesController#destroy behaves like unauthorized_request when unauthorized status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:41', '2018-10-17 21:19:41', 1, 2, 0) | |
Shared Example Group: :unauthorized_request called from ./spec/controllers/saved_searches_controller_spec.rb:102 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
59) SavedSearchesController#internal_create when successful should create the saved search | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:41', '2018-10-17 21:19:41', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
60) SavedSearchesController#internal_create when successful should assign it to the correct user | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:41', '2018-10-17 21:19:41', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
61) SavedSearchesController#internal_create behaves like unauthenticated_request status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:41', '2018-10-17 21:19:41', 1, 2, 0) | |
Shared Example Group: :unauthenticated_request called from ./spec/controllers/saved_searches_controller_spec.rb:134 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
62) SavedSearchesController#internal_create behaves like unauthorized_request when unauthorized status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:42', '2018-10-17 21:19:42', 1, 2, 0) | |
Shared Example Group: :unauthorized_request called from ./spec/controllers/saved_searches_controller_spec.rb:135 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
63) ServicesController index | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:42', '2018-10-17 21:19:42', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
64) StandingCommitteesController#create when authorized creates the committee | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:42', '2018-10-17 21:19:42', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
65) StandingCommitteesController#create behaves like unauthorized_request when unauthorized status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:42', '2018-10-17 21:19:42', 1, 2, 0) | |
Shared Example Group: :unauthorized_request called from ./spec/controllers/standing_committees_controller_spec.rb:25 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
66) StandingCommitteesController#create behaves like unauthenticated_request status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:42', '2018-10-17 21:19:42', 1, 2, 0) | |
Shared Example Group: :unauthenticated_request called from ./spec/controllers/standing_committees_controller_spec.rb:26 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
67) StandingCommitteesController#update when authorized updates the committee | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:43', '2018-10-17 21:19:43', 1, 2, 0) | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
68) StandingCommitteesController#update behaves like unauthorized_request when unauthorized status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:43', '2018-10-17 21:19:43', 1, 2, 0) | |
Shared Example Group: :unauthorized_request called from ./spec/controllers/standing_committees_controller_spec.rb:47 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
69) StandingCommitteesController#update behaves like unauthenticated_request status | |
Failure/Error: @inst = FactoryGirl.create(:institution, :name => "Big U") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.units' doesn't exist: INSERT INTO `units` (`type`, `name`, `created_at`, `updated_at`, `lft`, `rgt`, `use_derived_eeo_statement`) VALUES ('Institution', 'Big U', '2018-10-17 21:19:43', '2018-10-17 21:19:43', 1, 2, 0) | |
Shared Example Group: :unauthenticated_request called from ./spec/controllers/standing_committees_controller_spec.rb:48 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation.rb:64:in `insert' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:524:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/counter_cache.rb:139:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/locking/optimistic.rb:75:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `block in _create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:306:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/timestamp.rb:57:in `_create_record' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:504:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/callbacks.rb:302:in `create_or_update' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/persistence.rb:142:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:7:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.units' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
70) StandingCommitteesController#destroy when authorized deletes the committee | |
Failure/Error: @superuser = FactoryGirl.create(:user, email: "[email protected]", pid: "1") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.users' doesn't exist: SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '[email protected]' LIMIT 1 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:221:in `exec_query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:38:in `select_one' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:43:in `select_value' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation/finder_methods.rb:302:in `exists?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations/uniqueness.rb:34:in `validate_each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:151:in `block in validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `public_send' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `block in make_lambda' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `block in simple' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `block in call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validate_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:399:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:338:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:58:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:83:in `perform_validations' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:16:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.users' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
71) StandingCommitteesController#destroy behaves like unauthorized_request when unauthorized status | |
Failure/Error: @superuser = FactoryGirl.create(:user, email: "[email protected]", pid: "1") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'by_committee_test.users' doesn't exist: SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '[email protected]' LIMIT 1 | |
Shared Example Group: :unauthorized_request called from ./spec/controllers/standing_committees_controller_spec.rb:68 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:221:in `exec_query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:38:in `select_one' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:43:in `select_value' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation/finder_methods.rb:302:in `exists?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations/uniqueness.rb:34:in `validate_each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:151:in `block in validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `public_send' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `block in make_lambda' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `block in simple' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `block in call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validate_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:399:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:338:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:58:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:83:in `perform_validations' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:16:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'by_committee_test.users' doesn't exist | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
72) StandingCommitteesController#destroy behaves like unauthenticated_request status | |
Failure/Error: @superuser = FactoryGirl.create(:user, email: "[email protected]", pid: "1") | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table definition has changed, please retry transaction: SELECT 1 AS one FROM `users` WHERE `users`.`pid` = BINARY '1' LIMIT 1 | |
Shared Example Group: :unauthenticated_request called from ./spec/controllers/standing_committees_controller_spec.rb:69 | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:221:in `exec_query' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:38:in `select_one' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:43:in `select_value' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/relation/finder_methods.rb:302:in `exists?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations/uniqueness.rb:34:in `validate_each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:151:in `block in validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validator.rb:148:in `validate' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `public_send' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:455:in `block in make_lambda' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:192:in `block in simple' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `block in call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `each' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validate_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:399:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations/callbacks.rb:113:in `run_validations!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activemodel-4.2.10/lib/active_model/validations.rb:338:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:58:in `valid?' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:83:in `perform_validations' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/validations.rb:43:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `block in save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:220:in `transaction' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/transactions.rb:291:in `save!' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `[]' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
# /home/botanicus/.gem/ruby/2.1.5/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
# ./spec/controllers/shared_context.rb:16:in `block (2 levels) in <top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table definition has changed, please retry transaction | |
# /home/botanicus/.gem/ruby/2.1.5/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `query' | |
Finished in 36 minutes 1 second (files took 28.73 seconds to load) | |
1951 examples, 72 failures | |
Failed examples: | |
rspec ./spec/controllers/permissions_controller_spec.rb:471 # PermissionsController#destroy when functional unit not found should display the error | |
rspec ./spec/controllers/permissions_controller_spec.rb:479 # PermissionsController#destroy when permission not found should return a 400 status | |
rspec ./spec/controllers/permissions_controller_spec.rb:483 # PermissionsController#destroy when permission not found should display the error | |
rspec ./spec/controllers/permissions_controller_spec.rb:512 # PermissionsController#cascade_destroy when successful | |
rspec ./spec/controllers/permissions_controller_spec.rb:521 # PermissionsController#cascade_destroy when unsuccessful | |
rspec ./spec/controllers/permissions_controller_spec.rb:524 # PermissionsController#cascade_destroy behaves like unauthorized_request when unauthorized status | |
rspec ./spec/controllers/permissions_controller_spec.rb:525 # PermissionsController#cascade_destroy behaves like unauthenticated_request status | |
rspec ./spec/controllers/pubsub_controller_spec.rb:15 # PubsubController#publication when authorized status | |
rspec ./spec/controllers/pubsub_controller_spec.rb:18 # PubsubController#publication behaves like unauthorized_request when unauthorized status | |
rspec ./spec/controllers/questions_controller_spec.rb:28 # QuestionsController#index when an administrator should return all questions for that custom form | |
rspec ./spec/controllers/questions_controller_spec.rb:33 # QuestionsController#index when an administrator should not return questions not associated with that form | |
rspec ./spec/controllers/questions_controller_spec.rb:37 # QuestionsController#index when an administrator should respond with JSON | |
rspec ./spec/controllers/questions_controller_spec.rb:49 # QuestionsController#index when user is not an admin for that functional unit should allow them to view question up the hierarchy | |
rspec ./spec/controllers/questions_controller_spec.rb:58 # QuestionsController#index when user is not an admin for that functional unit should not allow them to view questions for cf's not in hierarchy | |
rspec ./spec/controllers/questions_controller_spec.rb:70 # QuestionsController#index when unauthenticated user should have status 401 | |
rspec ./spec/controllers/questions_controller_spec.rb:96 # QuestionsController#show when any user should display the questions for that form | |
rspec ./spec/controllers/questions_controller_spec.rb:100 # QuestionsController#show when any user should respond with JSON | |
rspec ./spec/controllers/questions_controller_spec.rb:116 # QuestionsController#show when accessing from /custom_forms/:id when any user should allow them to access | |
rspec ./spec/controllers/questions_controller_spec.rb:132 # QuestionsController#show when not found should return 404 error | |
rspec ./spec/controllers/questions_controller_spec.rb:144 # QuestionsController#show when unauthenticated user should return 401 error | |
rspec ./spec/controllers/questions_controller_spec.rb:171 # QuestionsController#create when successful should create a new question | |
rspec ./spec/controllers/questions_controller_spec.rb:180 # QuestionsController#create when successful should respond with question JSON | |
rspec ./spec/controllers/questions_controller_spec.rb:195 # QuestionsController#create with unauthorized user should respond with 403 | |
rspec ./spec/controllers/questions_controller_spec.rb:206 # QuestionsController#create when unauthenticated user should respond with 401 | |
rspec ./spec/controllers/questions_controller_spec.rb:240 # QuestionsController#update when successful should update question attributes | |
rspec ./spec/controllers/questions_controller_spec.rb:244 # QuestionsController#update when successful should fill in last_update_by | |
rspec ./spec/controllers/questions_controller_spec.rb:248 # QuestionsController#update when successful should respond with the JSON | |
rspec ./spec/controllers/questions_controller_spec.rb:264 # QuestionsController#update with unauthorized user should respond with 403 | |
rspec ./spec/controllers/questions_controller_spec.rb:279 # QuestionsController#update when unauthenticated user should respond with 403 | |
rspec ./spec/controllers/questions_controller_spec.rb:302 # QuestionsController#reorder when successful when admin of that question's cust. form's fu should allow to reorder | |
rspec ./spec/controllers/questions_controller_spec.rb:310 # QuestionsController#reorder when successful when admin of that question's cust. form's fu should reverse the order of ids | |
rspec ./spec/controllers/questions_controller_spec.rb:322 # QuestionsController#reorder when successful when committee manager of that cust. form's fu should allow to reorder | |
rspec ./spec/controllers/questions_controller_spec.rb:334 # QuestionsController#reorder when not admin of that functional unit should return 403 error | |
rspec ./spec/controllers/questions_controller_spec.rb:373 # QuestionsController#destroy when lfu admin should allow to destroy lfu questions that it is admin of | |
rspec ./spec/controllers/questions_controller_spec.rb:382 # QuestionsController#destroy when lfu admin should not allow an lfu admin to destroy bfu questions | |
rspec ./spec/controllers/questions_controller_spec.rb:390 # QuestionsController#destroy when lfu admin should not allow an lfu admin to destroy institution questions | |
rspec ./spec/controllers/questions_controller_spec.rb:404 # QuestionsController#destroy when bfu admin should allow a bfu admin to destroy bfu custom questions | |
rspec ./spec/controllers/questions_controller_spec.rb:413 # QuestionsController#destroy when bfu admin should allow a bfu to destroy lfu questions | |
rspec ./spec/controllers/questions_controller_spec.rb:422 # QuestionsController#destroy when bfu admin should not allow a bfu admin to destroy inst cust. questions | |
rspec ./spec/controllers/questions_controller_spec.rb:436 # QuestionsController#destroy when inst admin should allow an inst admin to destroy institution questions | |
rspec ./spec/controllers/questions_controller_spec.rb:445 # QuestionsController#destroy when inst admin should allow an inst admin to destroy bfu questions | |
rspec ./spec/controllers/questions_controller_spec.rb:454 # QuestionsController#destroy when inst admin should allow an inst admin to destroy lfu questions | |
rspec ./spec/controllers/questions_controller_spec.rb:469 # QuestionsController#destroy when not admin should not allow to destroy questions | |
rspec ./spec/controllers/questions_controller_spec.rb:480 # QuestionsController#destroy when unauthenticated user should respond with 401 | |
rspec ./spec/controllers/reports_controller_spec.rb:23 # ReportsController#all_custom_form_changes when requesting json should respond with the json | |
rspec ./spec/controllers/reports_controller_spec.rb:31 # ReportsController#all_custom_form_changes when requesting csv should respond with the csv | |
rspec ./spec/controllers/reports_controller_spec.rb:49 # ReportsController#generate when authorized user calls report dispatcher | |
rspec ./spec/controllers/reports_controller_spec.rb:57 # ReportsController#generate behaves like unauthorized_request when unauthorized status | |
rspec ./spec/controllers/reports_controller_spec.rb:58 # ReportsController#generate behaves like unauthenticated_request status | |
rspec ./spec/controllers/reports_controller_spec.rb:70 # ReportsController#generate_facets when authorized user calls report dispatcher | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:42 # SavedSearchesController#for_object behaves like unauthenticated_request status | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:62 # SavedSearchesController#create when successful should create the saved search | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:68 # SavedSearchesController#create when successful should assign it to the correct user and correct object id | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:78 # SavedSearchesController#create when successful when no scoped object id is entered should set scoped object id to 0 | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:84 # SavedSearchesController#create behaves like unauthenticated_request status | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:94 # SavedSearchesController#destroy when successful should destroy the saved search | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:101 # SavedSearchesController#destroy behaves like unauthenticated_request status | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:102 # SavedSearchesController#destroy behaves like unauthorized_request when unauthorized status | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:123 # SavedSearchesController#internal_create when successful should create the saved search | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:129 # SavedSearchesController#internal_create when successful should assign it to the correct user | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:134 # SavedSearchesController#internal_create behaves like unauthenticated_request status | |
rspec ./spec/controllers/saved_searches_controller_spec.rb:135 # SavedSearchesController#internal_create behaves like unauthorized_request when unauthorized status | |
rspec ./spec/controllers/services_controller_spec.rb:11 # ServicesController index | |
rspec ./spec/controllers/standing_committees_controller_spec.rb:20 # StandingCommitteesController#create when authorized creates the committee | |
rspec ./spec/controllers/standing_committees_controller_spec.rb:25 # StandingCommitteesController#create behaves like unauthorized_request when unauthorized status | |
rspec ./spec/controllers/standing_committees_controller_spec.rb:26 # StandingCommitteesController#create behaves like unauthenticated_request status | |
rspec ./spec/controllers/standing_committees_controller_spec.rb:40 # StandingCommitteesController#update when authorized updates the committee | |
rspec ./spec/controllers/standing_committees_controller_spec.rb:47 # StandingCommitteesController#update behaves like unauthorized_request when unauthorized status | |
rspec ./spec/controllers/standing_committees_controller_spec.rb:48 # StandingCommitteesController#update behaves like unauthenticated_request status | |
rspec ./spec/controllers/standing_committees_controller_spec.rb:63 # StandingCommitteesController#destroy when authorized deletes the committee | |
rspec ./spec/controllers/standing_committees_controller_spec.rb:68 # StandingCommitteesController#destroy behaves like unauthorized_request when unauthorized status | |
rspec ./spec/controllers/standing_committees_controller_spec.rb:69 # StandingCommitteesController#destroy behaves like unauthenticated_request status | |
Coverage report generated for RSpec to /home/botanicus/byc-api/coverage. 6437 / 7730 LOC (83.27%) covered. | |
/home/botanicus/.rubies/ruby-2.1.5/bin/ruby -I/home/botanicus/.gem/ruby/2.1.5/gems/rspec-core-3.4.4/lib:/home/botanicus/.gem/ruby/2.1.5/gems/rspec-support-3.4.1/lib /home/botanicus/.gem/ruby/2.1.5/gems/rspec-core-3.4.4/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment