Sha256: 0ca6c9a93216977a2b898e24ddf1a9531f59c5215b6d5983a43049bad9dcf9ec
Contents?: true
Size: 452 Bytes
Versions: 11
Compression:
Stored size: 452 Bytes
Contents
RSpec.describe Licensee::Matchers::Package do let(:mit) { Licensee::License.find('mit') } let(:content) { '' } let(:file) { Licensee::Project::LicenseFile.new(content, 'project.gemspec') } subject { described_class.new(file) } before { allow(subject).to receive(:license_property).and_return('mit') } it 'matches' do expect(subject.match).to eql(mit) end it 'has confidence' do expect(subject.confidence).to eql(90) end end
Version data entries
11 entries across 11 versions & 1 rubygems