Skip to content
Snippets Groups Projects
Commit fbe8dc8f authored by Jack Nagel's avatar Jack Nagel
Browse files

Add a test that exercises the code in X11Dependency#satisfied?

parent 47431052
No related branches found
No related tags found
No related merge requests found
......@@ -32,4 +32,12 @@ class X11DependencyTests < Homebrew::TestCase
ENV.expects(:x11)
x.modify_build_environment
end
def test_satisfied
MacOS::XQuartz.stubs(:installed?).returns(true)
assert_predicate X11Dependency.new, :satisfied?
MacOS::XQuartz.stubs(:installed?).returns(false)
refute_predicate X11Dependency.new, :satisfied?
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment