aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/leaves_test.rb
blob: f73fba1ea3b9058c8c9a8bf7833fabb9fe07c356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "testing_env"

class IntegrationCommandTestLeaves < IntegrationCommandTestCase
  def test_leaves
    setup_test_formula "foo"
    setup_test_formula "bar"
    assert_equal "", cmd("leaves")

    (HOMEBREW_CELLAR/"foo/0.1/somedir").mkpath
    assert_equal "foo", cmd("leaves")

    (HOMEBREW_CELLAR/"bar/0.1/somedir").mkpath
    assert_equal "bar", cmd("leaves")
  end
end