Skip to content

Commit

Permalink
Fix Rubocop whinings
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryates committed Feb 2, 2024
1 parent 9b6fa69 commit 1d3e2eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ Style/EmptyCaseCondition:
Enabled: false
Style/FormatString:
EnforcedStyle: format
Style/RedundantParentheses:
Enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
end

specify 'the error message list should contain the correct messages' do
object.errors.messages.each do |_attribute, message_list|
object.errors.messages.each_value do |message_list|
expect(subject).to have_tag('li', text: message_list.first) do
end
end
end

specify 'the error message list should contain links to relevant errors' do
object.errors.messages.each do |attribute, _msg|
object.errors.messages.each_key do |attribute|
expect(subject).to have_tag('a', with: {
href: "#person-#{underscores_to_dashes(attribute)}-field-error",
'data-turbo' => false
Expand Down

0 comments on commit 1d3e2eb

Please sign in to comment.