mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Merge pull request #2733 from rolandwalker/testing_constants
add HOMEBREW_TAP_FORMULA_REGEX constant in tests
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
require 'test_helper'
|
||||
require 'cask/version'
|
||||
|
||||
HOMEBREW_BREW_FILE = '/usr/local/bin/brew'
|
||||
|
||||
describe Cask::CLI::Doctor do
|
||||
it 'displays some nice info about the environment' do
|
||||
out, err = capture_io do
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
require 'bundler'
|
||||
require 'bundler/setup'
|
||||
|
||||
# set some Homebrew constants used in our code
|
||||
HOMEBREW_TAP_FORMULA_REGEX = %r{^(\w+)/(\w+)/([^/]+)$}
|
||||
HOMEBREW_BREW_FILE = '/usr/local/bin/brew'
|
||||
|
||||
# add cask lib to load path
|
||||
brew_cask_path = Pathname.new(File.expand_path(__FILE__+'/../../'))
|
||||
|
||||
Reference in New Issue
Block a user