Skip to content

Commit

Permalink
Fix and re-enable a Changelog spec
Browse files Browse the repository at this point in the history
Today I learned about "subexpression modifiers" like `(?i)` and `(?-i)`
to toggle case insensitivity on parts of a regular expression. Source:
https://ruby-doc.org/core-3.1.2/Regexp.html#class-Regexp-label-Options
  • Loading branch information
bquorning committed Oct 22, 2022
1 parent c818e9a commit adc716d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/project/changelog_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@
expect(contributors.sort_by(&:downcase)).to eq(contributors)
end

it 'links to github profiles', :pending do
it 'links to github profiles' do
expect(contributors).to all(
match(%r{\A\[@([^\]]+)\]: https://github.com/\1\n\z})
# The footnote reference will be lowercase, but the github path can be
# mixed case.
match(%r{\A\[@([^\]]+)\]: https://github.com/(?i)\1\n\z})
)
end
end
Expand Down

0 comments on commit adc716d

Please sign in to comment.