diff options
| author | Markus Reiter | 2017-02-09 04:17:14 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-10 17:19:19 +0100 |
| commit | a9e538efbdb0532e9236400434c9970e0cdfd8fc (patch) | |
| tree | 45b331841c4a4d0c53a4215987c158bbf86cd5bb /Library | |
| parent | a616fab5bf84d9e2a07610666cf148444c04b3c4 (diff) | |
| download | brew-a9e538efbdb0532e9236400434c9970e0cdfd8fc.tar.bz2 | |
Move NeverSudoSystemCommand to separate file.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/spec/spec_helper.rb | 8 | ||||
| -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 = {}) |
