aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-06 22:53:28 +0100
committerMarkus Reiter2017-03-07 17:18:35 +0100
commit536a377d71f4c1718fe8d690d1b2b72ed042b323 (patch)
treebc07df85f8e5ddcfc4b8e1621d35ca97e0cffe64 /Library/Homebrew/test
parent1959cc3f2df6287467d90242fc6dee41398a5731 (diff)
downloadbrew-536a377d71f4c1718fe8d690d1b2b72ed042b323.tar.bz2
Use `ArgumentError` instead of `CaskError` in `CLI`.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/cask/cli/options_spec.rb4
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 86933e27e..0f42908bc 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