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

Version Path
licensee-8.9.2 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.9.0 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.8.5 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.8.4 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.8.3 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.8.2 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.8.1 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.8.0 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.7.0 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.6.1 spec/licensee/matchers/package_matcher_spec.rb
licensee-8.6.0 spec/licensee/matchers/package_matcher_spec.rb