Skip to content

Commit

Permalink
Get rid of JSON error message line number regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg committed Feb 17, 2023
1 parent 0317f17 commit ea0fd48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ def _status_description
expect(status).to eq :danger
# The \d reference is a line number in the external `json` gem which might change every now and then.
# We want to avoid having to change our tests whenever that library updates.
expect(description).to match(/Error while loading regulations: \d+: unexpected token at 'i am definitely not json'/)
expect(description).to match(/Error while loading regulations: unexpected token at 'i am definitely not json'/)
end
end

0 comments on commit ea0fd48

Please sign in to comment.