У меня есть приложение rails, я начинаю добавлять юнит-тесты.Моя проблема в том, что даже когда я запускаю пустой тест, у меня есть SQLException:
require 'test_helper'
class UserMailerTest < ActionMailer::TestCase
test "the truth" do
assert true
end
end
Вывод:
Run options: --seed 64346
# Running:
E
Error:
UserMailerTest#test_the_truth:
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: products: DELETE FROM "products"
bin/rails test test/mailers/user_mailer_test.rb:5
Finished in 0.233057s, 4.2908 runs/s, 0.0000 assertions/s.
В моем коде нет таблицы "products".A git grep -i product
ничего мне не дает.
Любая помощь?