Sha256: fd2be088eb30a6ead8a37aedbae05adf2ee27c80d7fe69066f6202b38788e68b

Contents?: true

Size: 484 Bytes

Versions: 9

Compression:

Stored size: 484 Bytes

Contents

RSpec.describe Licensee::Matchers::Cran do
  let(:mit) { Licensee::License.find('mit') }
  let(:content) { "Package: test\nLicense: MIT + file LICENSE" }
  let(:file) { Licensee::Project::LicenseFile.new(content, 'project.gemspec') }
  subject { described_class.new(file) }

  it 'stores the file' do
    expect(subject.file).to eql(file)
  end

  it 'matches' do
    expect(subject.match).to eql(mit)
  end

  it 'is confident' do
    expect(subject.confidence).to eql(90)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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