Commit 7747455
committed
Fix "Could not find table 'users'" during tests
Setting the RAILS_ENV to test ensures that the Rails test setup happens
as expected, loading the schema into the test database before the tests
are run. This fixes a problem where the tests would fail with this
message if `bundle exec rake test` is run on a fresh checkout:
ActiveRecord::StatementInvalid: Could not find table 'users'1 parent fbce97a commit 7747455
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
0 commit comments