diff options
| author | Mike McQuaid | 2018-01-17 10:42:43 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2018-01-17 10:42:43 +0000 |
| commit | 1f48e17f1b2f681ea56b72b8d2c1eebdb77f2181 (patch) | |
| tree | d6441603e1e8fb405b91ab1bb0e869c5a4af6a69 /Library/Homebrew/test/support | |
| parent | 8cd0d85afba1bd07a6af24ffca54518ec8ff0d1c (diff) | |
| download | brew-1f48e17f1b2f681ea56b72b8d2c1eebdb77f2181.tar.bz2 | |
rubocop: fix brew style warnings.
Diffstat (limited to 'Library/Homebrew/test/support')
| -rw-r--r-- | Library/Homebrew/test/support/helper/output_as_tty.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/support/helper/output_as_tty.rb b/Library/Homebrew/test/support/helper/output_as_tty.rb index aa9da73cc..22f96510e 100644 --- a/Library/Homebrew/test/support/helper/output_as_tty.rb +++ b/Library/Homebrew/test/support/helper/output_as_tty.rb @@ -19,7 +19,7 @@ module Test return super(block) unless @tty colored_tty_block = lambda do - instance_eval("$#{@output}").extend(Module.new do + instance_eval("$#{@output}", __FILE__, __LINE__).extend(Module.new do def tty? true end @@ -32,7 +32,7 @@ module Test return super(colored_tty_block) if @colors uncolored_tty_block = lambda do - instance_eval <<-EOS + instance_eval <<-EOS, __FILE__, __LINE__ + 1 begin captured_stream = StringIO.new |
