From 04f275cca755360e1ff5b042a388c30072476415 Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Fri, 26 Dec 2014 11:01:12 -0500 Subject: [PATCH] avoid using monkeypatch `Pathname#/` which was inherited from Homebrew --- test/test_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index a000dd706..c33984014 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -32,10 +32,10 @@ require 'cask' # pretend like we installed the cask tap project_root = Pathname.new(File.expand_path("#{File.dirname(__FILE__)}/../")) -taps_dest = HOMEBREW_LIBRARY/"Taps/caskroom" +taps_dest = HOMEBREW_LIBRARY.join('Taps/caskroom') # create directories FileUtils.mkdir_p taps_dest HOMEBREW_PREFIX.join('bin').mkdir -FileUtils.ln_s project_root, taps_dest/"homebrew-cask" +FileUtils.ln_s project_root, taps_dest.join('homebrew-cask')