1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix dbconsole test when tempdir is a long path

The output of `.databases` in SQLite will truncate to a certain size.
This causes the test to fail when run locally from a mac, or anything
which has a tempdir with more than a few characters. This pragma has
the same output, but presented as a normal query, meaning no truncation
will occur.
This commit is contained in:
Sean Griffin 2017-07-25 08:10:52 -04:00
parent 902aa87f58
commit b691a946ba

View file

@ -64,7 +64,7 @@ module ApplicationTests
spawn_dbconsole(slave, "-e production")
assert_output("sqlite>", master)
master.puts ".databases"
master.puts "pragma database_list;"
assert_output("production.sqlite3", master)
ensure
master.puts ".exit"