spec/integration_spec.rb in licensee-9.5.0 vs spec/integration_spec.rb in licensee-9.6.0

- old
+ new

@@ -147,15 +147,34 @@ it 'returns other' do expect(subject.license).to eql(license) end end + context 'BSL' do + let(:license) { Licensee::License.find('bsl-1.0') } + let(:fixture) { 'bsl' } + + it 'returns bsl-1.0' 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 } } it 'determines the project is MIT' do + expect(subject.license).to eql(license) + end + end + + context 'apache license + README notice' do + let(:license) { Licensee::License.find('apache-2.0') } + let(:fixture) { 'apache-with-readme-notice' } + let(:arguments) { { detect_readme: true } } + + it 'determines the project is Apache-2.0' do expect(subject.license).to eql(license) end end end