aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-08-07 00:48:13 -0500
committerJack Nagel2014-08-07 00:48:13 -0500
commitbfda0a841278b288166362172bdecc6acfa740cd (patch)
tree2142e8c3836a8083360114079d1efb1e3b3fdc1b /Library/Homebrew/test
parent565944c6fe4c70dd8666a205c8a7b6cc610305fc (diff)
downloadhomebrew-bfda0a841278b288166362172bdecc6acfa740cd.tar.bz2
Raise ArgumentError for argument errors
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_software_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_software_spec.rb b/Library/Homebrew/test/test_software_spec.rb
index db2242022..702d2c581 100644
--- a/Library/Homebrew/test/test_software_spec.rb
+++ b/Library/Homebrew/test/test_software_spec.rb
@@ -48,11 +48,11 @@ class SoftwareSpecTests < Homebrew::TestCase
end
def test_option_raises_when_begins_with_dashes
- assert_raises(RuntimeError) { @spec.option('--foo') }
+ assert_raises(ArgumentError) { @spec.option("--foo") }
end
def test_option_raises_when_name_empty
- assert_raises(RuntimeError) { @spec.option('') }
+ assert_raises(ArgumentError) { @spec.option("") }
end
def test_option_accepts_symbols