Sha256: 468a79424668229ca5e3378a49222751b733b5d677c3795e843a28e79761dcb0
Contents?: true
Size: 639 Bytes
Versions: 3
Compression:
Stored size: 639 Bytes
Contents
RSpec.describe Licensee::Matchers::Exact do let(:mit) { Licensee::License.find('mit') } let(:content) { sub_copyright_info(mit.content) } let(:file) { Licensee::Project::LicenseFile.new(content, 'LICENSE.txt') } 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(100) end context 'with extra words added' do let(:content) { add_random_words(mit.content) } it "doesn't match" do expect(subject.match).to be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
licensee-8.7.0 | spec/licensee/matchers/exact_matcher_spec.rb |
licensee-8.6.1 | spec/licensee/matchers/exact_matcher_spec.rb |
licensee-8.6.0 | spec/licensee/matchers/exact_matcher_spec.rb |