Browse Source

enforce Ruby 2.0 minimum at test entry point

master
Roland Walker 10 years ago
parent
commit
ea1302e009
  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