Sha256: e1f970e5f8ef72e7bb7f5ad6996b2e3dfce500bc05aa6f300e5b51db0811704f
Contents?: true
Size: 649 Bytes
Versions: 5
Compression:
Stored size: 649 Bytes
Contents
RSpec.describe Licensee::Matchers::Exact do let(:mit) { Licensee::License.find('mit') } let(:content) { sub_copyright_info(mit.content) } let(:file) { Licensee::ProjectFiles::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(content).to be_detected_as(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
5 entries across 5 versions & 1 rubygems