spec/licensee/content_helper_spec.rb in licensee-8.8.2 vs spec/licensee/content_helper_spec.rb in licensee-8.8.3
- old
+ new
@@ -76,10 +76,11 @@
Licensee::License.all(hidden: true).each do |license|
context license.name do
let(:stripped_content) { subject.content_without_title_and_version }
it 'strips the title' do
- regex = /\A#{license.name_without_version}/i
+ regex = Licensee::ContentHelper::ALT_TITLE_REGEX[license.key]
+ regex ||= /\A#{license.name_without_version}/i
expect(license.content_normalized).to_not match(regex)
expect(stripped_content).to_not match(regex)
end
it 'strips the version' do