aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
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