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
commitacc1c35f35fb86957d56e19988fd4aeabae57b9e (patch)
tree5ff687100ad4f276f896e49f87f7c2fd5adf7b6e /Library/Homebrew/test
parent20452f3edc22ede05814a7355d65c9ef4547b3b0 (diff)
downloadbrew-acc1c35f35fb86957d56e19988fd4aeabae57b9e.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