Skip to content
Snippets Groups Projects
Commit ea203c2a authored by Jack Nagel's avatar Jack Nagel
Browse files

Combine Homebrew module declarations in testing_env

parent 480e3ec8
No related branches found
No related tags found
No related merge requests found
......@@ -43,10 +43,6 @@ MACOS_VERSION = ENV.fetch('MACOS_VERSION') { MACOS_FULL_VERSION[/10\.\d+/] }
ORIGINAL_PATHS = ENV['PATH'].split(File::PATH_SEPARATOR).map{ |p| Pathname.new(p).expand_path rescue nil }.compact.freeze
module Homebrew extend self
include FileUtils
end
# Test environment setup
%w{Library/Formula Library/ENV}.each do |d|
HOMEBREW_REPOSITORY.join(d).mkpath
......@@ -68,6 +64,8 @@ rescue LoadError
end
module Homebrew
include FileUtils
module VersionAssertions
def version v
Version.new(v)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment