spec/licensee/content_helper_spec.rb in licensee-9.2.0 vs spec/licensee/content_helper_spec.rb in licensee-9.2.1

- old
+ new

@@ -14,10 +14,12 @@ ================= Copyright 2016 Ben Balter ************************* + All rights reserved. + The made * * * * up license. ----------- EOS @@ -108,10 +110,14 @@ it 'strips markdown headings' do expect(normalized_content).to_not match('#') end + it 'strips all rights reserved' do + expect(normalized_content).to_not match(/all rights reserved/i) + end + 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 @@ -122,9 +128,14 @@ end it 'strips the version' do expect(license.content_normalized).to_not match(/\Aversion/i) expect(stripped_content).to_not match(/\Aversion/i) + end + + it 'strips all rights reserved' do + regex = /all rights reserved/i + expect(license.content_normalized).to_not match(regex) end it 'strips the copyright' do expect(license.content_normalized).to_not match(/\Acopyright/i) end