diff --git a/Library/Homebrew/test/cmd/install_spec.rb b/Library/Homebrew/test/cmd/install_spec.rb index 460c465c76..ef74f06cc3 100644 --- a/Library/Homebrew/test/cmd/install_spec.rb +++ b/Library/Homebrew/test/cmd/install_spec.rb @@ -116,10 +116,10 @@ RSpec.describe Homebrew::Cmd::InstallCmd do keg_dir.mkpath touch keg_dir/AbstractTab::FILENAME - expect { + expect do brew "install", "--ask", "testball1" - }.to output(/.*Formulae\s*\(3\):\s*testball1\s*,?\s*testball5\s*,?\s*testball4.*/).to_stdout - .and not_to_output.to_stderr + end.to output(/.*Formulae\s*\(3\):\s*testball1\s*,?\s*testball5\s*,?\s*testball4.*/).to_stdout + .and not_to_output.to_stderr expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test").to be_a_file expect(HOMEBREW_CELLAR/"testball4/0.1/bin/testball4").to be_a_file diff --git a/Library/Homebrew/test/cmd/reinstall_spec.rb b/Library/Homebrew/test/cmd/reinstall_spec.rb index 9452e9b1cb..77e55c994c 100644 --- a/Library/Homebrew/test/cmd/reinstall_spec.rb +++ b/Library/Homebrew/test/cmd/reinstall_spec.rb @@ -29,8 +29,8 @@ RSpec.describe Homebrew::Cmd::Reinstall do expect { brew "reinstall", "--ask", "testball" } .to output(/.*Formula\s*\(1\):\s*testball.*/).to_stdout - .and not_to_output.to_stderr - .and be_a_success + .and not_to_output.to_stderr + .and be_a_success expect(foo_dir).to exist end diff --git a/Library/Homebrew/test/cmd/upgrade_spec.rb b/Library/Homebrew/test/cmd/upgrade_spec.rb index 0b3679ecfd..0dbac25f7f 100644 --- a/Library/Homebrew/test/cmd/upgrade_spec.rb +++ b/Library/Homebrew/test/cmd/upgrade_spec.rb @@ -52,10 +52,10 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do keg_dir.mkpath touch keg_dir/AbstractTab::FILENAME - expect { + expect do brew "upgrade", "--ask" - }.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball.*/) - .to_stdout.and not_to_output.to_stderr + end.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball.*/) + .to_stdout.and not_to_output.to_stderr expect(HOMEBREW_CELLAR/"testball/0.1").to be_a_directory expect(HOMEBREW_CELLAR/"testball/0.0.1").not_to exist