aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/lib
diff options
context:
space:
mode:
authorXu Cheng2016-02-05 22:11:04 +0800
committerXu Cheng2016-02-06 02:52:48 +0800
commit12a452557d7695dba69f488a95a77a2650d28251 (patch)
treea768def416e903df738e6dfad457713f7feed255 /Library/Homebrew/test/lib
parentca77025f8bb3e821c08a0b1d948ec5b0dc246fe1 (diff)
downloadbrew-12a452557d7695dba69f488a95a77a2650d28251.tar.bz2
make HOMEBREW_BREW_FILE a Pathname object
Currently HOMEBREW_BREW_FILE is a String, while other of HOMEBREW_* variables are all Pathname. This commit unifies them all as Pathname, so it will not cause any confusion. Closes Homebrew/homebrew#48872. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/test/lib')
-rw-r--r--Library/Homebrew/test/lib/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/lib/config.rb b/Library/Homebrew/test/lib/config.rb
index 527f2117f..cf9578544 100644
--- a/Library/Homebrew/test/lib/config.rb
+++ b/Library/Homebrew/test/lib/config.rb
@@ -1,7 +1,7 @@
require "tmpdir"
require "pathname"
-HOMEBREW_BREW_FILE = ENV["HOMEBREW_BREW_FILE"]
+HOMEBREW_BREW_FILE = Pathname.new(ENV["HOMEBREW_BREW_FILE"])
HOMEBREW_TEMP = Pathname.new(ENV["HOMEBREW_TEMP"] || Dir.tmpdir)
TEST_TMPDIR = ENV.fetch("HOMEBREW_TEST_TMPDIR") { |k|