spec/integration_spec.rb in licensee-9.11.0 vs spec/integration_spec.rb in licensee-9.12.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
RSpec.describe 'integration test' do
[
Licensee::Projects::FSProject,
Licensee::Projects::GitProject
].each do |project_type|
@@ -156,10 +158,19 @@
it 'returns bsl-1.0' do
expect(subject.license).to eql(license)
end
end
+ context 'MIT w/optional phrase' do
+ let(:license) { Licensee::License.find('mit') }
+ let(:fixture) { 'mit-optional' }
+
+ it 'returns mit' do
+ expect(subject.license).to eql(license)
+ end
+ end
+
context 'license + README reference' do
let(:license) { Licensee::License.find('mit') }
let(:fixture) { 'license-with-readme-reference' }
let(:arguments) { { detect_readme: true } }
@@ -190,9 +201,18 @@
context 'BSD-3-Clause numbered and bulleted' do
let(:license) { Licensee::License.find('bsd-3-clause') }
let(:fixture) { 'bsd-3-lists' }
it 'determines the project is BSD-3-Clause' do
+ expect(subject.license).to eql(license)
+ end
+ end
+
+ context 'HTML license file' do
+ let(:license) { Licensee::License.find('epl-1.0') }
+ let(:fixture) { 'html' }
+
+ it 'matches to GPL3' do
expect(subject.license).to eql(license)
end
end
end