Skip to content

Commit

Permalink
Merge pull request #28 from bf4/patch-3
Browse files Browse the repository at this point in the history
FIX: NotImplementedError inherits from Exception (not StandardError)
  • Loading branch information
k0kubun committed Jun 15, 2021
2 parents cb6724b + 0585b95 commit 53b8c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/openapi/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
records.each do |record|
begin
RSpec::OpenAPI::SchemaMerger.reverse_merge!(spec, RSpec::OpenAPI::SchemaBuilder.build(record))
rescue => e # e.g. SchemaBuilder raises a NotImplementedError
rescue StandardError, NotImplementedError => e # e.g. SchemaBuilder raises a NotImplementedError
# NOTE: Don't fail the build
records_errors << [e, record]
end
Expand Down

0 comments on commit 53b8c1a

Please sign in to comment.