aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/dbconsole_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use correct variableyuuji.yaginuma2018-09-111-4/+4
| | | | Follow up of 3e81490717a314437f9123d86fa3e9dc55558e95.
* Remove all references to slave in the codebaseRafael Mendonça França2018-09-101-6/+6
|
* Remove redundant execution of `Dir.chdir(app_path) { }` in railties' testsbogdanvlviv2017-10-081-28/+24
|
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-0/+2
|
* Merge pull request #29931 from ↵Sean Griffin2017-07-251-21/+2
|\ | | | | | | | | y-yagi/extract_assert_output_and_available_pty_to_module Extract `assert_output` and `available_pty?` into `ConsoleHelpers` module
| * Extract `assert_output` and `available_pty?` into `ConsoleHelpers` moduleyuuji.yaginuma2017-07-251-21/+2
| | | | | | | | | | We define almost the same method with multiple tests. Therefore, it extract into module.
* | Fix `dbconsole` test when tempdir is a long pathSean Griffin2017-07-251-1/+1
|/ | | | | | | | 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.
* Set `RAILS_ENV` before load application fileyuuji.yaginuma2017-07-171-3/+32
| | | | | | | Since #29725, load application file when `dbconsole` command is executed. However, if do not set `RAILS_ENV` before reading the application file, can not connect to the env specified in option, so added the setting of `RAILS_ENV`.
* Load environment file in `dbconsole` commandyuuji.yaginuma2017-07-091-0/+66
Currently the environment file is not loaded in `dbconsole` command. Therefore, for example, if use encrypted secrets values in database.yml, `read_encrypted_secrets` will not be true, so the value can not be used correctly. Fixes #29717