From acc1c35f35fb86957d56e19988fd4aeabae57b9e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 7 Aug 2014 00:48:13 -0500 Subject: Raise ArgumentError for argument errors --- Library/Homebrew/test/test_software_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/test/test_software_spec.rb') 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 -- cgit v1.2.3