aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2017-07-25 08:10:52 -0400
committerSean Griffin <sean@seantheprogrammer.com>2017-07-25 08:12:11 -0400
commitb691a946ba229b72f9ec30e50ba5b9ba1e39e6fa (patch)
tree0b7ca426c1c34bc588727c25bec0416da5795f93 /railties
parent902aa87f582843cfacb4eadcb844ab144aaeedd0 (diff)
downloadrails-b691a946ba229b72f9ec30e50ba5b9ba1e39e6fa.tar.gz
rails-b691a946ba229b72f9ec30e50ba5b9ba1e39e6fa.tar.bz2
rails-b691a946ba229b72f9ec30e50ba5b9ba1e39e6fa.zip
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.
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/dbconsole_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/dbconsole_test.rb b/railties/test/application/dbconsole_test.rb
index 12d1cfb089..ab42199db7 100644
--- a/railties/test/application/dbconsole_test.rb
+++ b/railties/test/application/dbconsole_test.rb
@@ -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"