aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-04-01 18:56:14 -0500
committerJack Nagel2013-04-01 18:56:14 -0500
commitd2ae810b768a276d13f87c770a6492662141d48e (patch)
treec191c07b185d6ad811ddc29ad15d71de838953ca /Library
parent115501d42f0f65f7b801851a0b20b45c6ef7eba5 (diff)
downloadbrew-d2ae810b768a276d13f87c770a6492662141d48e.tar.bz2
Test that X11 env is triggered correctly
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_x11_deps.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_x11_deps.rb b/Library/Homebrew/test/test_x11_deps.rb
index 433a2a1ab..0d5e3978b 100644
--- a/Library/Homebrew/test/test_x11_deps.rb
+++ b/Library/Homebrew/test/test_x11_deps.rb
@@ -46,6 +46,13 @@ class X11DependencyTests < Test::Unit::TestCase
assert !x.eql?(p)
assert !p.eql?(x)
end
+
+ def test_x_env
+ x = X11Dependency.new
+ x.stubs(:satisfied?).returns(true)
+ ENV.expects(:x11)
+ x.modify_build_environment
+ end
end
class X11DepCollectionTests < Test::Unit::TestCase