spec/licensee/content_helper_spec.rb in licensee-9.6.0 vs spec/licensee/content_helper_spec.rb in licensee-9.7.0

- old
+ new

@@ -42,11 +42,11 @@ expect(subject.max_delta).to eql(140) end end it 'knows the length delta' do - expect(subject.length_delta(mit)).to eql(1000) + expect(subject.length_delta(mit)).to eql(999) expect(subject.length_delta(subject)).to eql(0) end it 'knows the similarity' do expect(subject.similarity(mit)).to be_within(1).of(2) @@ -112,9 +112,13 @@ expect(normalized_content).to_not match('#') end it 'strips all rights reserved' do expect(normalized_content).to_not match(/all rights reserved/i) + end + + it 'strips markup' do + expect(normalized_content).to_not match(/[*=_-]+/) end Licensee::License.all(hidden: true).each do |license| context license.name do let(:stripped_content) { subject.content_without_title_and_version }