Add updated diagnostic test for build from source check.

This commit is contained in:
Justin Baugh 2017-07-20 11:18:16 -04:00
parent 7504d830cb
commit dd334a8357

View File

@ -12,6 +12,12 @@ describe Homebrew::Diagnostic::Checks do
.to match("Some directories in your path end in a slash") .to match("Some directories in your path end in a slash")
end 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 specify "#check_for_anaconda" do
mktmpdir do |path| mktmpdir do |path|
anaconda = "#{path}/anaconda" anaconda = "#{path}/anaconda"