diff options
| author | Markus Reiter | 2017-03-08 03:35:37 +0100 |
|---|---|---|
| committer | GitHub | 2017-03-08 03:35:37 +0100 |
| commit | 9105acab6bc6a04d01c49a32ec27f8ab16fd40b7 (patch) | |
| tree | cf6fc48d13a2cba5c9ebd8f8e19c400163482f7a /Library/Homebrew/test | |
| parent | fe694f6db9190239fd4a84f1208d218aa02c0474 (diff) | |
| parent | 536a377d71f4c1718fe8d690d1b2b72ed042b323 (diff) | |
| download | brew-9105acab6bc6a04d01c49a32ec27f8ab16fd40b7.tar.bz2 | |
Merge pull request #2283 from reitermarkus/cask-cli-argumenterror
Use `ArgumentError` instead of `CaskError` in `CLI`.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/cask/cli/options_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/cask/cli/options_spec.rb b/Library/Homebrew/test/cask/cli/options_spec.rb index 35dafa853..44a391b48 100644 --- a/Library/Homebrew/test/cask/cli/options_spec.rb +++ b/Library/Homebrew/test/cask/cli/options_spec.rb @@ -108,7 +108,7 @@ describe Hbc::CLI, :cask do it "shows a user-friendly error message" do expect { Hbc::CLI.process_options %w[install -f] - }.to raise_error(Hbc::CaskError) + }.to raise_error(ArgumentError) end end @@ -116,7 +116,7 @@ describe Hbc::CLI, :cask do it "shows a user-friendly error message" do expect { Hbc::CLI.process_options %w[edit -c] - }.to raise_error(Hbc::CaskError) + }.to raise_error(ArgumentError) end end |
