From e9c587d7510ca6fe820bbc03db5bb6d0b9672c22 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 4 Oct 2017 17:54:52 +0200 Subject: Refactor tests. --- Library/Homebrew/test/cask/cli/list_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/test/cask/cli') diff --git a/Library/Homebrew/test/cask/cli/list_spec.rb b/Library/Homebrew/test/cask/cli/list_spec.rb index 4f59aafe9..6a92289aa 100644 --- a/Library/Homebrew/test/cask/cli/list_spec.rb +++ b/Library/Homebrew/test/cask/cli/list_spec.rb @@ -72,8 +72,9 @@ describe Hbc::CLI::List, :cask do it "lists the installed files for those Casks" do casks.each(&InstallHelper.method(:install_without_artifacts_with_caskfile)) - transmission.artifacts.select { |a| a.is_a?(Hbc::Artifact::App) } - .each { |artifact| artifact.install_phase(command: Hbc::NeverSudoSystemCommand, force: false) } + transmission.artifacts.select { |a| a.is_a?(Hbc::Artifact::App) }.each do |artifact| + artifact.install_phase(command: Hbc::NeverSudoSystemCommand, force: false) + end expect { described_class.run("local-transmission", "local-caffeine") -- cgit v1.2.3