Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run Rails console test against IRB with Reline instead of Readline
1. By removing the `--singleline` flag, IRB will use Reline by default. 2. By assigning `TERM=dumb`, Reline will skip east-asian width detection, which was what caused the test to hang. I need to stress that the east-asian width detection is not a bug but an improvement in Reline to help rendering east-asian characters correctly. Readline actually can't do this well. Please see @tompng's great explanation in ruby/irb#582 (comment) However, this detection should not happen when the terminal is running in PTY (usually used in test environment). The problem is that in Ruby we don't have a way to detect if the terminal is running in TTY or PTY. But by passing `TERM=dumb`, Reline will assume that the terminal is not capable of several advanced features, including this east-asian width detection.
- Loading branch information