From a9e538efbdb0532e9236400434c9970e0cdfd8fc Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Thu, 9 Feb 2017 04:17:14 +0100 Subject: Move NeverSudoSystemCommand to separate file. --- Library/Homebrew/cask/spec/spec_helper.rb | 8 -------- Library/Homebrew/cask/spec/support/never_sudo_system_command.rb | 9 +++++++++ Library/Homebrew/cask/test/support/never_sudo_system_command.rb | 7 ------- 3 files changed, 9 insertions(+), 15 deletions(-) create mode 100644 Library/Homebrew/cask/spec/support/never_sudo_system_command.rb delete mode 100644 Library/Homebrew/cask/test/support/never_sudo_system_command.rb 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/spec/support/never_sudo_system_command.rb b/Library/Homebrew/cask/spec/support/never_sudo_system_command.rb new file mode 100644 index 000000000..eb8b677f2 --- /dev/null +++ b/Library/Homebrew/cask/spec/support/never_sudo_system_command.rb @@ -0,0 +1,9 @@ +require "hbc/system_command" + +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/test/support/never_sudo_system_command.rb deleted file mode 100644 index 8a370df44..000000000 --- a/Library/Homebrew/cask/test/support/never_sudo_system_command.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Hbc - class NeverSudoSystemCommand < SystemCommand - def self.run(command, options = {}) - super(command, options.merge(sudo: false)) - end - end -end -- cgit v1.2.3