Last active
November 13, 2019 15:19
-
-
Save glajman/965e977d735c3b71c365c4e44499348d 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
vagrant@vagrant-ubuntu-trusty-64:~/rg$ bundle exec rspec spec/controllers/patron_controller_spec.rb | |
An error occurred while loading ./spec/controllers/patron_controller_spec.rb. | |
Failure/Error: scope :find_by_name, ->(name) { where( name: name ) } | |
ActiveRecord::StatementInvalid: | |
Mysql2::Error: Table 'bctest.click_trackers' doesn't exist: SHOW FULL FIELDS FROM `click_trackers` | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' | |
# ./vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/mysql2_adapter.rb:213:in `execute' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:259:in `execute_and_free' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:426:in `columns' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/model_schema.rb:229:in `yield' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/model_schema.rb:229:in `columns' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/model_schema.rb:249:in `column_names' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/model_schema.rb:262:in `column_methods_hash' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/dynamic_matchers.rb:74:in `all_attributes_exists?' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/dynamic_matchers.rb:5:in `respond_to?' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/scoping/named.rb:192:in `valid_scope_name?' | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/scoping/named.rb:174:in `scope' | |
# ./app/models/click_tracker.rb:12:in `<class:ClickTracker>' | |
# ./app/models/click_tracker.rb:1:in `<top (required)>' | |
# ./vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:251:in `require' | |
# ./vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:251:in `block in require' | |
# ./vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:236:in `load_dependency' | |
# ./vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:251:in `require' | |
# ./vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:359:in `require_or_load' | |
# ./vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:313:in `depend_on' | |
# ./vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:225:in `require_dependency' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/engine.rb:444:in `block (2 levels) in eager_load!' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/engine.rb:443:in `each' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/engine.rb:443:in `block in eager_load!' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/engine.rb:441:in `each' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/engine.rb:441:in `eager_load!' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/initializable.rb:30:in `instance_exec' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/initializable.rb:30:in `run' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/initializable.rb:55:in `block in run_initializers' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/initializable.rb:54:in `each' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/initializable.rb:54:in `run_initializers' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/application.rb:136:in `initialize!' | |
# ./vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.5/lib/rails/railtie/configurable.rb:30:in `method_missing' | |
# ./config/environment.rb:5:in `<top (required)>' | |
# ./spec/spec_helper.rb:2:in `require' | |
# ./spec/spec_helper.rb:2:in `<top (required)>' | |
# ./spec/controllers/patron_controller_spec.rb:1:in `require' | |
# ./spec/controllers/patron_controller_spec.rb:1:in `<top (required)>' | |
# ------------------ | |
# --- Caused by: --- | |
# Mysql2::Error: | |
# Table 'bctest.click_trackers' doesn't exist | |
# ./vendor/bundle/ruby/2.2.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query' | |
No examples found. | |
Finished in 0.00006 seconds (files took 12.55 seconds to load) | |
0 examples, 0 failures, 1 error occurred outside of examples |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment