From 379794ea18b021d44b7de1d988d646dbaf616a52 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Thu, 31 Jul 2014 00:05:43 -0300 Subject: [PATCH] Fix travis-ci build --- test/test_helper.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 07ca1311c..94c639901 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,15 +1,16 @@ require 'bundler' require 'bundler/setup' +homebrew_path = Pathname(`brew --prefix`.chomp) +homebrew_path = Pathname('/usr/local') unless homebrew_path.exist? + # add cask lib to load path -brew_cask_path = Pathname.new(File.expand_path(__FILE__+'/../../../homebrew-cask/')) +brew_cask_path = homebrew_path.join('Library', 'Taps', 'caskroom', 'homebrew-cask') lib_path = brew_cask_path.join('lib') $:.push(lib_path) # add homebrew to load path -homebrew_path = Pathname(`brew --prefix`.chomp) -homebrew_path = Pathname('/usr/local') unless homebrew_path.exist? $:.push(homebrew_path.join('Library', 'Homebrew')) # require homebrew testing env