Skip to content

Commit

Permalink
Fix rubocop long line
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindew committed May 21, 2024
1 parent 9487c78 commit 49177d5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions spec/lib/openapi3_parser/validation/error_collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,15 @@ def create_error(message,
error_d,
error_e])

klass = Openapi3Parser::Validation::ErrorCollection::LocationTypeGroup
expect(instance.group_errors).to contain_exactly(
klass.new(error_a.context.source_location, nil,
[error_a, error_b]), klass.new(error_c.context.source_location, nil, [error_c]), klass.new(error_d.context.source_location, "Contact", [error_d]), klass.new(error_e.context.source_location, "Info", [error_e])
)
group_class = Openapi3Parser::Validation::ErrorCollection::LocationTypeGroup

expected = [
group_class.new(error_a.context.source_location, nil, [error_a, error_b]),
group_class.new(error_c.context.source_location, nil, [error_c]),
group_class.new(error_d.context.source_location, "Contact", [error_d]),
group_class.new(error_e.context.source_location, "Info", [error_e])
]
expect(instance.group_errors).to contain_exactly(*expected)
end
end

Expand Down

0 comments on commit 49177d5

Please # to comment.