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
commit004794692057ff9d240166c0930e11b9cf5f0d42 (patch)
treea9cc1267bf75618ea37dea9eefaec5ad1faa5bf9 /Library
parent17e83c4f242464c36648b147bb10ed1c89448f55 (diff)
downloadhomebrew-004794692057ff9d240166c0930e11b9cf5f0d42.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