Closed titopandub closed 9 years ago
Can you post a sample app where this is happening that I can play with?
Hi Brandon,
I'm so sorry, this test failing because I'm using in memory database for testing. When I switch into file (sqlite3) database, then everything is working okay. Thank you very much for this gem. :+1:
Great to hear you got it worked out. Thanks for the follow up.
I have a problem, my test is failing on calling ActiveRecord inside perform method in job. It is said
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: ...
. Here is my test_helper.rband here is my Job
If I use
ActiveRecord::Base.connection_pool.with_connection
block inside perform, the test that using this code will fail and other test that execute after this that using database will also fail. If not, then only test that using this code that fail.