aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cask/spec/spec_helper.rb')
-rw-r--r--Library/Homebrew/cask/spec/spec_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/spec/spec_helper.rb b/Library/Homebrew/cask/spec/spec_helper.rb
index dc9edec3d..d9f29c828 100644
--- a/Library/Homebrew/cask/spec/spec_helper.rb
+++ b/Library/Homebrew/cask/spec/spec_helper.rb
@@ -41,3 +41,11 @@ RSpec.configure do |config|
]
end
end
+
+module Hbc
+ class NeverSudoSystemCommand < SystemCommand
+ def self.run(command, options = {})
+ super(command, options.merge(sudo: false))
+ end
+ end
+end