aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2017-07-21 09:06:50 +0100
committerGitHub2017-07-21 09:06:50 +0100
commite0560ff363d5efa177cf567281e78f73848557b4 (patch)
tree99189f69078f5239cf516c6935839f0e283a5d91 /Library/Homebrew/test
parent997260da541cf4d1be8769e8c7960372bd6a92f0 (diff)
parentbd06a7926cbcdeb8d8d80f6eb46b5bde27b365e4 (diff)
downloadbrew-e0560ff363d5efa177cf567281e78f73848557b4.tar.bz2
Merge pull request #2919 from baughj/add-check-for-build-from-source
Add check for build from source
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/diagnostic_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/test/diagnostic_spec.rb b/Library/Homebrew/test/diagnostic_spec.rb
index 058b9823c..8a25413ed 100644
--- a/Library/Homebrew/test/diagnostic_spec.rb
+++ b/Library/Homebrew/test/diagnostic_spec.rb
@@ -12,6 +12,12 @@ describe Homebrew::Diagnostic::Checks do
.to match("Some directories in your path end in a slash")
end
+ specify "#check_build_from_source" do
+ ENV["HOMEBREW_BUILD_FROM_SOURCE"] = "1"
+ expect(subject.check_build_from_source)
+ .to match("You have HOMEBREW_BUILD_FROM_SOURCE set.")
+ end
+
specify "#check_for_anaconda" do
mktmpdir do |path|
anaconda = "#{path}/anaconda"