aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-03-05 20:12:51 -0600
committerJack Nagel2014-03-05 20:45:44 -0600
commit7c6cc92c76a4dba0100394c601b6717060d337c2 (patch)
treeb72c7d762151fd6d96d1c1cd36c60ec77d42d308 /Library/Homebrew/test
parentad7ff7992c6ca693914aedca7a7cec63476a42e1 (diff)
downloadhomebrew-7c6cc92c76a4dba0100394c601b6717060d337c2.tar.bz2
Remove special X11 proxy deps
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_dependency_collector.rb10
-rw-r--r--Library/Homebrew/test/test_x11_dependency.rb46
2 files changed, 0 insertions, 56 deletions
diff --git a/Library/Homebrew/test/test_dependency_collector.rb b/Library/Homebrew/test/test_dependency_collector.rb
index 0f07ba7e6..c6b34b684 100644
--- a/Library/Homebrew/test/test_dependency_collector.rb
+++ b/Library/Homebrew/test/test_dependency_collector.rb
@@ -101,16 +101,6 @@ class DependencyCollectorTests < Test::Unit::TestCase
assert_nil @d.build(:libtool)
end
- def test_x11_proxy_dep_mountain_lion
- MacOS.stubs(:version).returns(MacOS::Version.new("10.8"))
- assert_equal Dependency.new("libpng"), @d.build(:libpng)
- end
-
- def test_x11_proxy_dep_lion_or_older
- MacOS.stubs(:version).returns(MacOS::Version.new("10.7"))
- assert_equal X11Dependency::Proxy.new(:libpng), @d.build(:libpng)
- end
-
def test_ld64_dep_pre_leopard
MacOS.stubs(:version).returns(MacOS::Version.new("10.4"))
assert_equal LD64Dependency.new, @d.build(:ld64)
diff --git a/Library/Homebrew/test/test_x11_dependency.rb b/Library/Homebrew/test/test_x11_dependency.rb
index 884a7cd27..6c56ac87f 100644
--- a/Library/Homebrew/test/test_x11_dependency.rb
+++ b/Library/Homebrew/test/test_x11_dependency.rb
@@ -19,35 +19,6 @@ class X11DependencyTests < Test::Unit::TestCase
assert !y.eql?(x)
end
- def test_proxy_for
- x = X11Dependency::Proxy.for("libpng")
- assert_instance_of X11Dependency::Proxy::Libpng, x
- assert_kind_of X11Dependency, x
- end
-
- def test_proxy_eql_instances_are_eql
- x = X11Dependency::Proxy.for("libpng")
- y = X11Dependency::Proxy.for("libpng")
- assert x.eql?(y)
- assert y.eql?(x)
- assert x.hash == y.hash
- end
-
- def test_proxy_not_eql_when_hashes_differ
- x = X11Dependency::Proxy.for("libpng")
- y = X11Dependency::Proxy.for("fontconfig")
- assert x.hash != y.hash
- assert !x.eql?(y)
- assert !y.eql?(x)
- end
-
- def test_x_never_eql_to_proxy_x11_dep
- x = X11Dependency.new("libpng")
- p = X11Dependency::Proxy.for("libpng")
- assert !x.eql?(p)
- assert !p.eql?(x)
- end
-
def test_x_env
x = X11Dependency.new
x.stubs(:satisfied?).returns(true)
@@ -55,20 +26,3 @@ class X11DependencyTests < Test::Unit::TestCase
x.modify_build_environment
end
end
-
-class X11DepCollectionTests < Test::Unit::TestCase
- def setup
- @set = ComparableSet.new
- end
-
- def test_x_can_coxist_with_proxy
- @set << X11Dependency.new << X11Dependency::Proxy.for("libpng")
- assert_equal 2, @set.count
- end
-
- def test_multiple_proxies_can_coexist
- @set << X11Dependency::Proxy.for("libpng")
- @set << X11Dependency::Proxy.for("fontconfig")
- assert_equal 2, @set.count
- end
-end