Browse Source

Fix travis-ci build

master
Federico Bond 11 years ago
parent
commit
379794ea18
  1. 7
      test/test_helper.rb

7
test/test_helper.rb

@ -1,15 +1,16 @@
require 'bundler' require 'bundler'
require 'bundler/setup' require 'bundler/setup'
homebrew_path = Pathname(`brew --prefix`.chomp)
homebrew_path = Pathname('/usr/local') unless homebrew_path.exist?
# add cask lib to load path # 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') lib_path = brew_cask_path.join('lib')
$:.push(lib_path) $:.push(lib_path)
# add homebrew to load 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')) $:.push(homebrew_path.join('Library', 'Homebrew'))
# require homebrew testing env # require homebrew testing env

Loading…
Cancel
Save