Browse Source

Merge pull request #633 from rolandwalker/enforce_ruby_2_0

enforce Ruby 2.0 minimum at test entry point
master
Roland Walker 10 years ago
parent
commit
8dd65e362c
  1. 5
      test/test_helper.rb

5
test/test_helper.rb

@ -1,6 +1,11 @@
require 'bundler'
require 'bundler/setup'
# just in case
if RUBY_VERSION.to_i < 2
raise 'brew-cask: Ruby 2.0 or greater is required.'
end
homebrew_path = Pathname(`brew --prefix`.chomp)
homebrew_path = Pathname('/usr/local') unless homebrew_path.exist?

Loading…
Cancel
Save