diff options
| author | Markus Reiter | 2017-03-08 02:43:22 +0100 |
|---|---|---|
| committer | GitHub | 2017-03-08 02:43:22 +0100 |
| commit | fe694f6db9190239fd4a84f1208d218aa02c0474 (patch) | |
| tree | 6c5bd9d72442a6dd2eb5214c50570f29dbf330f4 /Library/Homebrew/test/cask/cli | |
| parent | 9a4538a3254297f7830afe16ea5a78fb3a9c0146 (diff) | |
| parent | 3b8524d770172ec4aacb48fceb4dc8d2c1836bce (diff) | |
| download | brew-fe694f6db9190239fd4a84f1208d218aa02c0474.tar.bz2 | |
Merge pull request #2284 from reitermarkus/cask-refactor-cli
Refactor CLI options.
Diffstat (limited to 'Library/Homebrew/test/cask/cli')
| -rw-r--r-- | Library/Homebrew/test/cask/cli/options_spec.rb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Library/Homebrew/test/cask/cli/options_spec.rb b/Library/Homebrew/test/cask/cli/options_spec.rb index 86933e27e..35dafa853 100644 --- a/Library/Homebrew/test/cask/cli/options_spec.rb +++ b/Library/Homebrew/test/cask/cli/options_spec.rb @@ -122,17 +122,23 @@ describe Hbc::CLI, :cask do describe "--debug" do it "sets the Cask debug method to true" do - Hbc::CLI.process_options %w[help --debug] - expect(Hbc.debug).to be true - Hbc.debug = false + begin + Hbc::CLI.process_options %w[help --debug] + expect(Hbc::CLI.debug?).to be true + ensure + Hbc::CLI.debug = false + end end end describe "--help" do it "sets the Cask help method to true" do - Hbc::CLI.process_options %w[foo --help] - expect(Hbc.help).to be true - Hbc.help = false + begin + Hbc::CLI.process_options %w[foo --help] + expect(Hbc::CLI.help?).to be true + ensure + Hbc::CLI.help = false + end end end end |
