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:
parent
902aa87f58
commit
b691a946ba
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ module ApplicationTests
|
||||||
spawn_dbconsole(slave, "-e production")
|
spawn_dbconsole(slave, "-e production")
|
||||||
assert_output("sqlite>", master)
|
assert_output("sqlite>", master)
|
||||||
|
|
||||||
master.puts ".databases"
|
master.puts "pragma database_list;"
|
||||||
assert_output("production.sqlite3", master)
|
assert_output("production.sqlite3", master)
|
||||||
ensure
|
ensure
|
||||||
master.puts ".exit"
|
master.puts ".exit"
|
||||||
|
|
Loading…
Reference in a new issue