Skip to content

Commit

Permalink
Argh Bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
presidentbeef committed Jul 12, 2024
1 parent 0601d35 commit 547fe68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/brakeman/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def create_option_parser options
# Specifying minimum version here,
# since it can't be in the gem dependency list because it is optional
gem 'prism', "~>#{prism_version}"
rescue Gem::MissingSpecVersionError, Gem::MissingSpecError => e
rescue Gem::MissingSpecVersionError, Gem::MissingSpecError, Gem::LoadError => e
$stderr.puts "Please install `prism` version #{prism_version} or newer:"
raise e
end
Expand Down
4 changes: 2 additions & 2 deletions test/tests/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,11 @@ def test_use_prism
gem('prism', '~>0.30')
options = setup_options_from_input('--prism')
assert options[:use_prism]
rescue Gem::MissingSpecVersionError
rescue Gem::MissingSpecVersionError, Gem::MissingSpecError, Gem::LoadError
# Otherwise, test the error message and exception

assert_output nil, /Please install `prism`/ do
assert_raises Gem::MissingSpecVersionError do
assert_raises Gem::MissingSpecVersionError, Gem::MissingSpecError, Gem::LoadError do
setup_options_from_input('--prism')
end
end
Expand Down

0 comments on commit 547fe68

Please sign in to comment.