This repository has been archived by the owner on Oct 27, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove special case output to STDOUT
The spec formatter checks that the output is a tty to decide whether to use colourized formatting but then bypasses this check if STDOUT is used. This means spec > output.log has undesirable escape sequences. The only purpose for this special casing seems to be preventing the closure of STDOUT. Localize this special case to #close so #output_to_tty? works as expected.
- Loading branch information
1 parent
4ce2b04
commit 3457a3a
Showing
2 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters