spec/licensee/project_files/readme_spec.rb in licensee-9.4.0 vs spec/licensee/project_files/readme_spec.rb in licensee-9.5.0
- old
+ new
@@ -96,6 +96,15 @@
it 'returns the license' do
expect(license).to eql('hello world')
end
end
end
+
+ context 'a license reference' do
+ let(:content) { 'The MIT License' }
+ let(:mit) { Licensee::License.find('mit') }
+
+ it 'matches' do
+ expect(subject.match).to eql(mit)
+ end
+ end
end