aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_list.rb
blob: 1ffdb45286d61dd36c3f38fbc33dd256aad96d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "helper/integration_command_test_case"

class IntegrationCommandTestList < IntegrationCommandTestCase
  def test_list
    formulae = %w[bar foo qux]
    formulae.each do |f|
      (HOMEBREW_CELLAR/"#{f}/1.0/somedir").mkpath
    end

    assert_equal formulae.join("\n"),
                 cmd("list")
  end
end