diff options
| author | Alyssa Ross | 2017-02-12 15:06:54 +0000 |
|---|---|---|
| committer | Alyssa Ross | 2017-02-12 15:11:38 +0000 |
| commit | 9e97eadccbd99df1c6ffe489ab316d7ebde7fe86 (patch) | |
| tree | 78353f4e7cfe59f5da266a951939c868db11c170 /Library/Homebrew/cask | |
| parent | 76dfe030c70cde3aee731e5a68b82b9ac227b89c (diff) | |
| download | brew-9e97eadccbd99df1c6ffe489ab316d7ebde7fe86.tar.bz2 | |
rubocop: trailing comma in multiline method calls
Discussed in
https://github.com/Homebrew/brew/pull/1987/files#r100693581.
This was originally ommitted because it wasn't compatible with Ruby 1.8.
(See https://github.com/Homebrew/legacy-homebrew/pull/48144#r49928971).
Diffstat (limited to 'Library/Homebrew/cask')
13 files changed, 85 insertions, 85 deletions
diff --git a/Library/Homebrew/cask/spec/cask/accessibility_spec.rb b/Library/Homebrew/cask/spec/cask/accessibility_spec.rb index 8787a2c6d..71bebfa4b 100644 --- a/Library/Homebrew/cask/spec/cask/accessibility_spec.rb +++ b/Library/Homebrew/cask/spec/cask/accessibility_spec.rb @@ -19,7 +19,7 @@ describe "Accessibility Access" do expect(fake_system_command).to receive(:run!).with( "/usr/bin/touch", args: [Hbc.pre_mavericks_accessibility_dotfile], - sudo: true + sudo: true, ) shutup do @@ -41,7 +41,7 @@ describe "Accessibility Access" do expect(fake_system_command).to receive(:run!).with( "/usr/bin/sqlite3", args: [Hbc.tcc_db, "INSERT OR REPLACE INTO access VALUES('kTCCServiceAccessibility','com.example.BasicCask',0,1,1,NULL);"], - sudo: true + sudo: true, ) shutup do @@ -53,7 +53,7 @@ describe "Accessibility Access" do expect(fake_system_command).to receive(:run!).with( "/usr/bin/sqlite3", args: [Hbc.tcc_db, "DELETE FROM access WHERE client='com.example.BasicCask';"], - sudo: true + sudo: true, ) shutup do diff --git a/Library/Homebrew/cask/spec/cask/artifact/pkg_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/pkg_spec.rb index d4d69ea66..93ef2ecdf 100644 --- a/Library/Homebrew/cask/spec/cask/artifact/pkg_spec.rb +++ b/Library/Homebrew/cask/spec/cask/artifact/pkg_spec.rb @@ -18,7 +18,7 @@ describe Hbc::Artifact::Pkg do "/usr/sbin/installer", args: ["-pkg", cask.staged_path.join("MyFancyPkg", "Fancy.pkg"), "-target", "/"], sudo: true, - print_stdout: true + print_stdout: true, ) shutup do @@ -60,7 +60,7 @@ describe Hbc::Artifact::Pkg do "/usr/sbin/installer", args: ["-pkg", cask.staged_path.join("MyFancyPkg", "Fancy.pkg"), "-target", "/", "-applyChoiceChangesXML", cask.staged_path.join("/tmp/choices.xml")], sudo: true, - print_stdout: true + print_stdout: true, ) shutup do diff --git a/Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb index 008e2ad2a..a38ed903e 100644 --- a/Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb +++ b/Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb @@ -44,12 +44,12 @@ describe Hbc::Artifact::Uninstall do it "can uninstall" do Hbc::FakeSystemCommand.stubs_command( launchctl_list_cmd, - service_info + service_info, ) Hbc::FakeSystemCommand.stubs_command( sudo(launchctl_list_cmd), - unknown_response + unknown_response, ) Hbc::FakeSystemCommand.expects_command(launchctl_remove_cmd) @@ -62,12 +62,12 @@ describe Hbc::Artifact::Uninstall do it "can uninstall" do Hbc::FakeSystemCommand.stubs_command( launchctl_list_cmd, - unknown_response + unknown_response, ) Hbc::FakeSystemCommand.stubs_command( sudo(launchctl_list_cmd), - service_info + service_info, ) Hbc::FakeSystemCommand.expects_command(sudo(launchctl_remove_cmd)) @@ -125,7 +125,7 @@ describe Hbc::Artifact::Uninstall do it "can uninstall" do Hbc::FakeSystemCommand.stubs_command( %w[/usr/sbin/pkgutil --pkgs=my.fancy.package.*], - "#{main_pkg_id}\n#{agent_pkg_id}" + "#{main_pkg_id}\n#{agent_pkg_id}", ) [ @@ -134,28 +134,28 @@ describe Hbc::Artifact::Uninstall do ].each do |pkg_id, pkg_files, pkg_dirs| Hbc::FakeSystemCommand.stubs_command( %W[/usr/sbin/pkgutil --only-files --files #{pkg_id}], - pkg_files.join("\n") + pkg_files.join("\n"), ) Hbc::FakeSystemCommand.stubs_command( %W[/usr/sbin/pkgutil --only-dirs --files #{pkg_id}], - pkg_dirs.join("\n") + pkg_dirs.join("\n"), ) Hbc::FakeSystemCommand.stubs_command( %W[/usr/sbin/pkgutil --files #{pkg_id}], - (pkg_files + pkg_dirs).join("\n") + (pkg_files + pkg_dirs).join("\n"), ) Hbc::FakeSystemCommand.stubs_command( %W[/usr/sbin/pkgutil --pkg-info-plist #{pkg_id}], - pkg_info_plist + pkg_info_plist, ) Hbc::FakeSystemCommand.expects_command(sudo(%W[/usr/sbin/pkgutil --forget #{pkg_id}])) Hbc::FakeSystemCommand.expects_command( - sudo(%w[/bin/rm -f --] + pkg_files.map { |path| Pathname("/tmp/#{path}") }) + sudo(%w[/bin/rm -f --] + pkg_files.map { |path| Pathname("/tmp/#{path}") }), ) end @@ -173,7 +173,7 @@ describe Hbc::Artifact::Uninstall do ) Hbc::FakeSystemCommand.expects_command( - sudo(%W[/sbin/kextunload -b #{kext_id}]) + sudo(%W[/sbin/kextunload -b #{kext_id}]), ) Hbc::FakeSystemCommand.expects_command( @@ -181,7 +181,7 @@ describe Hbc::Artifact::Uninstall do ) Hbc::FakeSystemCommand.expects_command( - sudo(["/bin/rm", "-rf", "/Library/Extensions/FancyPackage.kext"]) + sudo(["/bin/rm", "-rf", "/Library/Extensions/FancyPackage.kext"]), ) subject @@ -201,7 +201,7 @@ describe Hbc::Artifact::Uninstall do ) Hbc::FakeSystemCommand.stubs_command( - %w[/bin/launchctl list] + %w[/bin/launchctl list], ) subject @@ -234,7 +234,7 @@ describe Hbc::Artifact::Uninstall do Hbc::FakeSystemCommand.expects_command( sudo(%w[/bin/rm -rf --], Pathname.new("/permissible/absolute/path"), - Pathname.new("~/permissible/path/with/tilde").expand_path) + Pathname.new("~/permissible/path/with/tilde").expand_path), ) subject @@ -248,7 +248,7 @@ describe Hbc::Artifact::Uninstall do Hbc::FakeSystemCommand.expects_command( sudo(%w[/bin/rm -rf --], Pathname.new("/permissible/absolute/path"), - Pathname.new("~/permissible/path/with/tilde").expand_path) + Pathname.new("~/permissible/path/with/tilde").expand_path), ) subject @@ -261,11 +261,11 @@ describe Hbc::Artifact::Uninstall do it "can uninstall" do Hbc::FakeSystemCommand.expects_command( - sudo(%w[/bin/rm -f --], dir_pathname.join(".DS_Store")) + sudo(%w[/bin/rm -f --], dir_pathname.join(".DS_Store")), ) Hbc::FakeSystemCommand.expects_command( - sudo(%w[/bin/rmdir --], dir_pathname) + sudo(%w[/bin/rmdir --], dir_pathname), ) subject @@ -280,7 +280,7 @@ describe Hbc::Artifact::Uninstall do Hbc::FakeSystemCommand.expects_command(%w[/bin/chmod -- +x] + [script_pathname]) Hbc::FakeSystemCommand.expects_command( - sudo(cask.staged_path.join("MyFancyPkg", "FancyUninstaller.tool"), "--please") + sudo(cask.staged_path.join("MyFancyPkg", "FancyUninstaller.tool"), "--please"), ) subject @@ -295,7 +295,7 @@ describe Hbc::Artifact::Uninstall do Hbc::FakeSystemCommand.expects_command(%w[/bin/chmod -- +x] + [script_pathname]) Hbc::FakeSystemCommand.expects_command( - sudo(cask.staged_path.join("MyFancyPkg", "FancyUninstaller.tool"), "--please") + sudo(cask.staged_path.join("MyFancyPkg", "FancyUninstaller.tool"), "--please"), ) subject @@ -308,7 +308,7 @@ describe Hbc::Artifact::Uninstall do it "can uninstall" do Hbc::FakeSystemCommand.expects_command( ["/usr/bin/osascript", "-e", 'tell application "System Events" to delete every login ' \ - 'item whose name is "Fancy"'] + 'item whose name is "Fancy"'], ) subject diff --git a/Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb index bd14cd6de..50e132bfa 100644 --- a/Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb +++ b/Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb @@ -45,12 +45,12 @@ describe Hbc::Artifact::Zap do it "can zap" do Hbc::FakeSystemCommand.stubs_command( launchctl_list_cmd, - service_info + service_info, ) Hbc::FakeSystemCommand.stubs_command( sudo(launchctl_list_cmd), - unknown_response + unknown_response, ) Hbc::FakeSystemCommand.expects_command(launchctl_remove_cmd) @@ -63,12 +63,12 @@ describe Hbc::Artifact::Zap do it "can zap" do Hbc::FakeSystemCommand.stubs_command( launchctl_list_cmd, - unknown_response + unknown_response, ) Hbc::FakeSystemCommand.stubs_command( sudo(launchctl_list_cmd), - service_info + service_info, ) Hbc::FakeSystemCommand.expects_command(sudo(launchctl_remove_cmd)) @@ -126,7 +126,7 @@ describe Hbc::Artifact::Zap do it "can zap" do Hbc::FakeSystemCommand.stubs_command( %w[/usr/sbin/pkgutil --pkgs=my.fancy.package.*], - "#{main_pkg_id}\n#{agent_pkg_id}" + "#{main_pkg_id}\n#{agent_pkg_id}", ) [ @@ -135,28 +135,28 @@ describe Hbc::Artifact::Zap do ].each do |pkg_id, pkg_files, pkg_dirs| Hbc::FakeSystemCommand.stubs_command( %W[/usr/sbin/pkgutil --only-files --files #{pkg_id}], - pkg_files.join("\n") + pkg_files.join("\n"), ) Hbc::FakeSystemCommand.stubs_command( %W[/usr/sbin/pkgutil --only-dirs --files #{pkg_id}], - pkg_dirs.join("\n") + pkg_dirs.join("\n"), ) Hbc::FakeSystemCommand.stubs_command( %W[/usr/sbin/pkgutil --files #{pkg_id}], - (pkg_files + pkg_dirs).join("\n") + (pkg_files + pkg_dirs).join("\n"), ) Hbc::FakeSystemCommand.stubs_command( %W[/usr/sbin/pkgutil --pkg-info-plist #{pkg_id}], - pkg_info_plist + pkg_info_plist, ) Hbc::FakeSystemCommand.expects_command(sudo(%W[/usr/sbin/pkgutil --forget #{pkg_id}])) Hbc::FakeSystemCommand.expects_command( - sudo(%w[/bin/rm -f --] + pkg_files.map { |path| Pathname("/tmp/#{path}") }) + sudo(%w[/bin/rm -f --] + pkg_files.map { |path| Pathname("/tmp/#{path}") }), ) end @@ -174,7 +174,7 @@ describe Hbc::Artifact::Zap do ) Hbc::FakeSystemCommand.expects_command( - sudo(%W[/sbin/kextunload -b #{kext_id}]) + sudo(%W[/sbin/kextunload -b #{kext_id}]), ) Hbc::FakeSystemCommand.expects_command( @@ -182,7 +182,7 @@ describe Hbc::Artifact::Zap do ) Hbc::FakeSystemCommand.expects_command( - sudo(["/bin/rm", "-rf", "/Library/Extensions/FancyPackage.kext"]) + sudo(["/bin/rm", "-rf", "/Library/Extensions/FancyPackage.kext"]), ) subject @@ -202,7 +202,7 @@ describe Hbc::Artifact::Zap do ) Hbc::FakeSystemCommand.stubs_command( - %w[/bin/launchctl list] + %w[/bin/launchctl list], ) subject @@ -235,7 +235,7 @@ describe Hbc::Artifact::Zap do Hbc::FakeSystemCommand.expects_command( sudo(%w[/bin/rm -rf --], Pathname.new("/permissible/absolute/path"), - Pathname.new("~/permissible/path/with/tilde").expand_path) + Pathname.new("~/permissible/path/with/tilde").expand_path), ) subject @@ -249,7 +249,7 @@ describe Hbc::Artifact::Zap do Hbc::FakeSystemCommand.expects_command( sudo(%w[/bin/rm -rf --], Pathname.new("/permissible/absolute/path"), - Pathname.new("~/permissible/path/with/tilde").expand_path) + Pathname.new("~/permissible/path/with/tilde").expand_path), ) subject @@ -262,11 +262,11 @@ describe Hbc::Artifact::Zap do it "can zap" do Hbc::FakeSystemCommand.expects_command( - sudo(%w[/bin/rm -f --], dir_pathname.join(".DS_Store")) + sudo(%w[/bin/rm -f --], dir_pathname.join(".DS_Store")), ) Hbc::FakeSystemCommand.expects_command( - sudo(%w[/bin/rmdir --], dir_pathname) + sudo(%w[/bin/rmdir --], dir_pathname), ) subject @@ -281,7 +281,7 @@ describe Hbc::Artifact::Zap do Hbc::FakeSystemCommand.expects_command(%w[/bin/chmod -- +x] + [script_pathname]) Hbc::FakeSystemCommand.expects_command( - sudo(cask.staged_path.join("MyFancyPkg", "FancyUninstaller.tool"), "--please") + sudo(cask.staged_path.join("MyFancyPkg", "FancyUninstaller.tool"), "--please"), ) subject @@ -296,7 +296,7 @@ describe Hbc::Artifact::Zap do Hbc::FakeSystemCommand.expects_command(%w[/bin/chmod -- +x] + [script_pathname]) Hbc::FakeSystemCommand.expects_command( - sudo(cask.staged_path.join("MyFancyPkg", "FancyUninstaller.tool"), "--please") + sudo(cask.staged_path.join("MyFancyPkg", "FancyUninstaller.tool"), "--please"), ) subject @@ -309,7 +309,7 @@ describe Hbc::Artifact::Zap do it "can zap" do Hbc::FakeSystemCommand.expects_command( ["/usr/bin/osascript", "-e", 'tell application "System Events" to delete every login ' \ - 'item whose name is "Fancy"'] + 'item whose name is "Fancy"'], ) subject diff --git a/Library/Homebrew/cask/spec/cask/container/dmg_spec.rb b/Library/Homebrew/cask/spec/cask/container/dmg_spec.rb index af42d89b1..cf35b7545 100644 --- a/Library/Homebrew/cask/spec/cask/container/dmg_spec.rb +++ b/Library/Homebrew/cask/spec/cask/container/dmg_spec.rb @@ -8,7 +8,7 @@ describe Hbc::Container::Dmg do dmg = Hbc::Container::Dmg.new( transmission, Pathname(transmission.url.path), - Hbc::SystemCommand + Hbc::SystemCommand, ) begin diff --git a/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb b/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb index d6c28bbd1..900ceb3e2 100644 --- a/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb +++ b/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb @@ -176,7 +176,7 @@ describe "download strategies" do expect(downloader).to have_received(:fetch_repo).with( downloader.cached_location, - cask.url.to_s + cask.url.to_s, ) end @@ -196,7 +196,7 @@ describe "download strategies" do "config:miscellany:use-commit-times=yes", cask.url.to_s, downloader.cached_location, - ]) + ]), ) end @@ -226,7 +226,7 @@ describe "download strategies" do "--non-interactive", cask.url.to_s, downloader.cached_location, - ]) + ]), ) end end @@ -257,7 +257,7 @@ describe "download strategies" do downloader.cached_location, "-r", "10", - ]) + ]), ) end end @@ -283,7 +283,7 @@ describe "download strategies" do downloader.tarball_path, "--", ".", - ]) + ]), ) end end diff --git a/Library/Homebrew/cask/spec/cask/macos_spec.rb b/Library/Homebrew/cask/spec/cask/macos_spec.rb index a1ebb0a9e..f931e1104 100644 --- a/Library/Homebrew/cask/spec/cask/macos_spec.rb +++ b/Library/Homebrew/cask/spec/cask/macos_spec.rb @@ -1,67 +1,67 @@ describe MacOS do it "says '/' is undeletable" do expect(MacOS).to be_undeletable( - "/" + "/", ) expect(MacOS).to be_undeletable( - "/." + "/.", ) expect(MacOS).to be_undeletable( - "/usr/local/Library/Taps/../../../.." + "/usr/local/Library/Taps/../../../..", ) end it "says '/Applications' is undeletable" do expect(MacOS).to be_undeletable( - "/Applications" + "/Applications", ) expect(MacOS).to be_undeletable( - "/Applications/" + "/Applications/", ) expect(MacOS).to be_undeletable( - "/Applications/." + "/Applications/.", ) expect(MacOS).to be_undeletable( - "/Applications/Mail.app/.." + "/Applications/Mail.app/..", ) end it "says the home directory is undeletable" do expect(MacOS).to be_undeletable( - Dir.home + Dir.home, ) expect(MacOS).to be_undeletable( - "#{Dir.home}/" + "#{Dir.home}/", ) expect(MacOS).to be_undeletable( - "#{Dir.home}/Documents/.." + "#{Dir.home}/Documents/..", ) end it "says the user library directory is undeletable" do expect(MacOS).to be_undeletable( - "#{Dir.home}/Library" + "#{Dir.home}/Library", ) expect(MacOS).to be_undeletable( - "#{Dir.home}/Library/" + "#{Dir.home}/Library/", ) expect(MacOS).to be_undeletable( - "#{Dir.home}/Library/." + "#{Dir.home}/Library/.", ) expect(MacOS).to be_undeletable( - "#{Dir.home}/Library/Preferences/.." + "#{Dir.home}/Library/Preferences/..", ) end it "says '/Applications/.app' is deletable" do expect(MacOS).not_to be_undeletable( - "/Applications/.app" + "/Applications/.app", ) end it "says '/Applications/SnakeOil Professional.app' is deletable" do expect(MacOS).not_to be_undeletable( - "/Applications/SnakeOil Professional.app" + "/Applications/SnakeOil Professional.app", ) end end diff --git a/Library/Homebrew/cask/spec/cask/pkg_spec.rb b/Library/Homebrew/cask/spec/cask/pkg_spec.rb index 2f0ba0839..6610b0e48 100644 --- a/Library/Homebrew/cask/spec/cask/pkg_spec.rb +++ b/Library/Homebrew/cask/spec/cask/pkg_spec.rb @@ -35,23 +35,23 @@ describe Hbc::Pkg do it "forgets the pkg" do allow(fake_system_command).to receive(:run!).with( "/usr/sbin/pkgutil", - args: ["--only-files", "--files", "my.fake.pkg"] + args: ["--only-files", "--files", "my.fake.pkg"], ).and_return(empty_response) allow(fake_system_command).to receive(:run!).with( "/usr/sbin/pkgutil", - args: ["--only-dirs", "--files", "my.fake.pkg"] + args: ["--only-dirs", "--files", "my.fake.pkg"], ).and_return(empty_response) allow(fake_system_command).to receive(:run!).with( "/usr/sbin/pkgutil", - args: ["--files", "my.fake.pkg"] + args: ["--files", "my.fake.pkg"], ).and_return(empty_response) expect(fake_system_command).to receive(:run!).with( "/usr/sbin/pkgutil", args: ["--forget", "my.fake.pkg"], - sudo: true + sudo: true, ) pkg.uninstall diff --git a/Library/Homebrew/cask/spec/cask/scopes_spec.rb b/Library/Homebrew/cask/spec/cask/scopes_spec.rb index abf4b6401..e6e507da8 100644 --- a/Library/Homebrew/cask/spec/cask/scopes_spec.rb +++ b/Library/Homebrew/cask/spec/cask/scopes_spec.rb @@ -14,7 +14,7 @@ describe Hbc::Scopes do %w[ loaded-cask-bar loaded-cask-foo - ] + ], ) end diff --git a/Library/Homebrew/cask/spec/cask/url_checker_spec.rb b/Library/Homebrew/cask/spec/cask/url_checker_spec.rb index 3b46bc587..8d2161586 100644 --- a/Library/Homebrew/cask/spec/cask/url_checker_spec.rb +++ b/Library/Homebrew/cask/spec/cask/url_checker_spec.rb @@ -36,7 +36,7 @@ describe Hbc::UrlChecker do "Content-Type" => "application/x-apple-diskimage", "ETag" => '"b4208f3e84967be4b078ecaa03fba941"', "Content-Length" => "23726161", - "Last-Modified" => "Sun, 12 Aug 2012 21:17:21 GMT" + "Last-Modified" => "Sun, 12 Aug 2012 21:17:21 GMT", ) end end diff --git a/Library/Homebrew/cask/spec/formatter_spec.rb b/Library/Homebrew/cask/spec/formatter_spec.rb index ad4c441cb..e8bd34416 100644 --- a/Library/Homebrew/cask/spec/formatter_spec.rb +++ b/Library/Homebrew/cask/spec/formatter_spec.rb @@ -21,7 +21,7 @@ describe Formatter do "aa\n" \ "bbb\n" \ "ccc\n" \ - "dd\n" + "dd\n", ) end @@ -32,7 +32,7 @@ describe Formatter do expect(subject).to eq( "aa ccc\n" \ - "bbb dd\n" + "bbb dd\n", ) end @@ -41,7 +41,7 @@ describe Formatter do allow(Tty).to receive(:width).and_return(20) expect(subject).to eq( - "aa bbb ccc dd\n" + "aa bbb ccc dd\n", ) end end diff --git a/Library/Homebrew/cask/spec/plist/parser_spec.rb b/Library/Homebrew/cask/spec/plist/parser_spec.rb index 9d4a59fdc..a71b7ea2e 100644 --- a/Library/Homebrew/cask/spec/plist/parser_spec.rb +++ b/Library/Homebrew/cask/spec/plist/parser_spec.rb @@ -61,7 +61,7 @@ describe Plist do /dev/disk3s1 /dev/disk3 /dev/disk3s2 - ] + ], ) end end diff --git a/Library/Homebrew/cask/spec/support/shared_examples/staged.rb b/Library/Homebrew/cask/spec/support/shared_examples/staged.rb index f791696ac..d815ef7a0 100644 --- a/Library/Homebrew/cask/spec/support/shared_examples/staged.rb +++ b/Library/Homebrew/cask/spec/support/shared_examples/staged.rb @@ -19,7 +19,7 @@ shared_examples Hbc::Staged do it "can run system commands with list-form arguments" do Hbc::FakeSystemCommand.expects_command( - ["echo", "homebrew-cask", "rocks!"] + ["echo", "homebrew-cask", "rocks!"], ) shutup do @@ -35,7 +35,7 @@ shared_examples Hbc::Staged do allow(staged).to receive(:bundle_identifier).and_return("com.example.BasicCask") Hbc::FakeSystemCommand.expects_command( - ["/usr/libexec/PlistBuddy", "-c", "Print CFBundleIdentifier", staged.info_plist_file] + ["/usr/libexec/PlistBuddy", "-c", "Print CFBundleIdentifier", staged.info_plist_file], ) shutup do @@ -47,7 +47,7 @@ shared_examples Hbc::Staged do allow(staged).to receive(:bundle_identifier).and_return("com.example.BasicCask") Hbc::FakeSystemCommand.expects_command( - ["/usr/libexec/PlistBuddy", "-c", "Set :JVMOptions:JVMVersion 1.6+", staged.info_plist_file] + ["/usr/libexec/PlistBuddy", "-c", "Set :JVMOptions:JVMVersion 1.6+", staged.info_plist_file], ) shutup do @@ -60,7 +60,7 @@ shared_examples Hbc::Staged do allow(staged).to receive(:Pathname).and_return(fake_pathname) Hbc::FakeSystemCommand.expects_command( - ["/bin/chmod", "-R", "--", "777", fake_pathname] + ["/bin/chmod", "-R", "--", "777", fake_pathname], ) shutup do @@ -73,7 +73,7 @@ shared_examples Hbc::Staged do allow(staged).to receive(:Pathname).and_return(fake_pathname) Hbc::FakeSystemCommand.expects_command( - ["/bin/chmod", "-R", "--", "777", fake_pathname, fake_pathname] + ["/bin/chmod", "-R", "--", "777", fake_pathname, fake_pathname], ) shutup do @@ -94,7 +94,7 @@ shared_examples Hbc::Staged do allow(staged).to receive(:Pathname).and_return(fake_pathname) Hbc::FakeSystemCommand.expects_command( - ["/usr/bin/sudo", "-E", "--", "/usr/sbin/chown", "-R", "--", "fake_user:staff", fake_pathname] + ["/usr/bin/sudo", "-E", "--", "/usr/sbin/chown", "-R", "--", "fake_user:staff", fake_pathname], ) shutup do @@ -109,7 +109,7 @@ shared_examples Hbc::Staged do allow(staged).to receive(:Pathname).and_return(fake_pathname) Hbc::FakeSystemCommand.expects_command( - ["/usr/bin/sudo", "-E", "--", "/usr/sbin/chown", "-R", "--", "fake_user:staff", fake_pathname, fake_pathname] + ["/usr/bin/sudo", "-E", "--", "/usr/sbin/chown", "-R", "--", "fake_user:staff", fake_pathname, fake_pathname], ) shutup do @@ -123,7 +123,7 @@ shared_examples Hbc::Staged do allow(staged).to receive(:Pathname).and_return(fake_pathname) Hbc::FakeSystemCommand.expects_command( - ["/usr/bin/sudo", "-E", "--", "/usr/sbin/chown", "-R", "--", "other_user:other_group", fake_pathname] + ["/usr/bin/sudo", "-E", "--", "/usr/sbin/chown", "-R", "--", "other_user:other_group", fake_pathname], ) shutup do |
