From d85eb55f1cd36b9573f4a1a5a6e42233eb8c4751 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Thu, 23 Feb 2017 06:07:07 +0100 Subject: Convert `brew list` test to spec. --- Library/Homebrew/test/cmd/list_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Library/Homebrew/test/cmd/list_spec.rb (limited to 'Library/Homebrew/test/cmd') diff --git a/Library/Homebrew/test/cmd/list_spec.rb b/Library/Homebrew/test/cmd/list_spec.rb new file mode 100644 index 000000000..df7394d7b --- /dev/null +++ b/Library/Homebrew/test/cmd/list_spec.rb @@ -0,0 +1,14 @@ +describe "brew list", :integration_test do + let(:formulae) { %w[bar foo qux] } + + it "prints all installed Formulae" do + formulae.each do |f| + (HOMEBREW_CELLAR/f/"1.0/somedir").mkpath + end + + expect { brew "list" } + .to output("#{formulae.join("\n")}\n").to_stdout + .and not_to_output.to_stderr + .and be_a_success + end +end -- cgit v1.2.3