diff --git a/Library/Homebrew/test/cmd/list_spec.rb b/Library/Homebrew/test/cmd/list_spec.rb index e14f3b17ec8bf5..9439526a320b72 100644 --- a/Library/Homebrew/test/cmd/list_spec.rb +++ b/Library/Homebrew/test/cmd/list_spec.rb @@ -13,28 +13,29 @@ formulae.each do |f| (HOMEBREW_CELLAR/f/"1.0/somedir").mkpath end - # casks.each do |f| - # (HOMEBREW_CELLAR/"../Caskroom"/f/"42.0/somedir").mkpath - # end + # casks.each do |f| + # (HOMEBREW_CELLAR/"../Caskroom"/f/"42.0/somedir").mkpath + # end expect { brew "list", "--formula" } .to output("#{formulae.sort.join("\n")}\n").to_stdout .and not_to_output.to_stderr .and be_a_success - # expect { brew "list", "--cask" } - # .to output("#{casks.sort.join("\n")}\n").to_stdout - # .and not_to_output.to_stderr - # .and be_a_success + # expect { brew "list", "--cask" } + # .to output("#{casks.sort.join("\n")}\n").to_stdout + # .and not_to_output.to_stderr + # .and be_a_success - # expect { brew "list", "--cask", "--version" } - # .to output("#{casks.sort.map{|name| name + " 42.0\n"}}\n").to_stdout - # .and not_to_output.to_stderr - # .and be_a_success + # expect { brew "list", "--cask", "--version" } + # .to output("#{casks.sort.map{|name| name + " 42.0\n"}}\n").to_stdout + # .and not_to_output.to_stderr + # .and be_a_success expect { brew "list", "--version" } - .to output("#{formulae.sort.map{|name| name + " 1.0"}.join("\n")}\n").to_stdout # + - # "#{casks.sort.map{|name| name + " 42.0"}.join("\n")}\n").to_stdout + # .to output("#{formulae.sort.map { |name| "#{name} 1.0" }.join("\n")}\n" + + # "#{casks.sort.map { |name| "#{name} 42.0" }.join("\n")}\n").to_stdout + .to output("#{formulae.sort.map { |name| "#{name} 1.0" }.join("\n")}\n").to_stdout # + .and not_to_output.to_stderr .and be_a_success end