Using Rails 3.1.x, DatabaseCleaner gem and capybara 2, I get the following when trying to run the tests:
Failure/Error: Unable to find matching line from backtrace
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'teambox_test_default.incoming_emails' doesn't exist: TRUNCATE TABLE incoming_emails
# ./config/initializers/connection_fix.rb:24:in `execute'
# -e:1:in `<main>'
This is solved by running:
bundle exec rake db:test:prepare
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With