aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cask/spec/spec_helper.rb8
-rw-r--r--Library/Homebrew/cask/spec/support/never_sudo_system_command.rb (renamed from Library/Homebrew/cask/test/support/never_sudo_system_command.rb)2
2 files changed, 2 insertions, 8 deletions
diff --git a/Library/Homebrew/cask/spec/spec_helper.rb b/Library/Homebrew/cask/spec/spec_helper.rb
index 0a7327b08..8b0720e86 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
index 8a370df44..eb8b677f2 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 = {})