rubocop: autofix problems.

This commit is contained in:
Mike McQuaid 2019-02-11 09:50:09 +00:00
parent 190deb36b5
commit 3060125c45
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
4 changed files with 6 additions and 6 deletions

View File

@ -255,7 +255,7 @@ shared_examples "#uninstall_phase or #zap_phase" do
.with( .with(
"osascript", "osascript",
args: ["-e", 'tell application "System Events" to delete every login item whose name is "Fancy"'], args: ["-e", 'tell application "System Events" to delete every login item whose name is "Fancy"'],
) )
.and_return(instance_double("SystemCommand::Result")) .and_return(instance_double("SystemCommand::Result"))
subject.public_send(:"#{artifact_dsl_key}_phase", command: fake_system_command) subject.public_send(:"#{artifact_dsl_key}_phase", command: fake_system_command)

View File

@ -111,7 +111,7 @@ describe Cask::Installer, :cask do
expect { expect {
Cask::Installer.new(with_installer_manual).install Cask::Installer.new(with_installer_manual).install
}.to output( }.to output(
<<~EOS <<~EOS,
==> Satisfying dependencies ==> Satisfying dependencies
==> Downloading file:#{HOMEBREW_LIBRARY_PATH}/test/support/fixtures/cask/caffeine.zip ==> Downloading file:#{HOMEBREW_LIBRARY_PATH}/test/support/fixtures/cask/caffeine.zip
==> Verifying SHA-256 checksum for Cask 'with-installer-manual'. ==> Verifying SHA-256 checksum for Cask 'with-installer-manual'.

View File

@ -20,7 +20,7 @@ describe Descriptions do
descriptions_hash["somedev/external/foo"] = "External foo" descriptions_hash["somedev/external/foo"] = "External foo"
expect { subject.print }.to output( expect { subject.print }.to output(
<<~EOS <<~EOS,
homebrew/core/foo: Core foo homebrew/core/foo: Core foo
somedev/external/foo: External foo somedev/external/foo: External foo
EOS EOS
@ -33,7 +33,7 @@ describe Descriptions do
descriptions_hash["otherdev/external/foo"] = "Other external foo" descriptions_hash["otherdev/external/foo"] = "Other external foo"
expect { subject.print }.to output( expect { subject.print }.to output(
<<~EOS <<~EOS,
homebrew/core/foo: Core foo homebrew/core/foo: Core foo
otherdev/external/foo: Other external foo otherdev/external/foo: Other external foo
somedev/external/foo: External foo somedev/external/foo: External foo

View File

@ -61,7 +61,7 @@ describe Messages do
it "prints caveat details" do it "prints caveat details" do
expect { messages.display_messages }.to output( expect { messages.display_messages }.to output(
<<~EOS <<~EOS,
==> Caveats ==> Caveats
==> foo ==> foo
Zsh completions were installed Zsh completions were installed
@ -88,7 +88,7 @@ describe Messages do
it "prints installation times" do it "prints installation times" do
expect { messages.display_messages }.to output( expect { messages.display_messages }.to output(
<<~EOS <<~EOS,
==> Installation times ==> Installation times
foo 1.100 s foo 1.100 s
EOS EOS