From a9e538efbdb0532e9236400434c9970e0cdfd8fc Mon Sep 17 00:00:00 2001 From: Markus Reiter <me@reitermark.us> Date: Thu, 9 Feb 2017 04:17:14 +0100 Subject: [PATCH] Move NeverSudoSystemCommand to separate file. --- Library/Homebrew/cask/spec/spec_helper.rb | 8 -------- .../{test => spec}/support/never_sudo_system_command.rb | 2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) rename Library/Homebrew/cask/{test => spec}/support/never_sudo_system_command.rb (84%) diff --git a/Library/Homebrew/cask/spec/spec_helper.rb b/Library/Homebrew/cask/spec/spec_helper.rb index 0a7327b087..8b0720e865 100644 --- a/Library/Homebrew/cask/spec/spec_helper.rb +++ b/Library/Homebrew/cask/spec/spec_helper.rb @@ -66,11 +66,3 @@ RSpec.configure do |config| end end end - -module Hbc - class NeverSudoSystemCommand < SystemCommand - def self.run(command, options = {}) - super(command, options.merge(sudo: false)) - end - end -end diff --git a/Library/Homebrew/cask/test/support/never_sudo_system_command.rb b/Library/Homebrew/cask/spec/support/never_sudo_system_command.rb similarity index 84% rename from Library/Homebrew/cask/test/support/never_sudo_system_command.rb rename to Library/Homebrew/cask/spec/support/never_sudo_system_command.rb index 8a370df447..eb8b677f27 100644 --- a/Library/Homebrew/cask/test/support/never_sudo_system_command.rb +++ b/Library/Homebrew/cask/spec/support/never_sudo_system_command.rb @@ -1,3 +1,5 @@ +require "hbc/system_command" + module Hbc class NeverSudoSystemCommand < SystemCommand def self.run(command, options = {}) -- GitLab