aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Baugh2017-07-20 11:18:16 -0400
committerJustin Baugh2017-07-20 11:18:16 -0400
commitdd334a8357bc47bfb88e40bd9d3b92e454a259fb (patch)
treeb0d71ebf02b916a9c212c1511d0d9e9ddf99b3c4
parent7504d830cb7ba8617ab4adc4468239c8c71fa5a7 (diff)
downloadbrew-dd334a8357bc47bfb88e40bd9d3b92e454a259fb.tar.bz2
Add updated diagnostic test for build from source check.
-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"