spec/integration_spec.rb in licensee-8.7.0 vs spec/integration_spec.rb in licensee-8.8.0
- old
+ new
@@ -35,14 +35,39 @@
expect(subject.license).to eql(license)
expect(subject.license_file.path).to eql('COPYING.lesser')
end
end
+ context 'with CC-BY-NC-SA' do
+ let(:fixture) { 'cc-by-nc-sa' }
+
+ it 'matches nothing' do
+ expect(subject.license).to eql(nil)
+ end
+ end
+
+ context 'with CC-BY-ND' do
+ let(:fixture) { 'cc-by-nd' }
+
+ it 'matches nothing' do
+ expect(subject.license).to eql(nil)
+ end
+ end
+
context 'MPL with HRs removed' do
let(:license) { Licensee::License.find('mpl-2.0') }
let(:fixture) { 'mpl-without-hrs' }
it 'matches to MPL' do
+ expect(subject.license).to eql(license)
+ end
+ end
+
+ context 'GPL3 with instructions removed' do
+ let(:license) { Licensee::License.find('gpl-3.0') }
+ let(:fixture) { 'gpl3-without-instructions' }
+
+ it 'matches to GPL3' do
expect(subject.license).to eql(license)
end
end
end