spec/licensee/matchers/dice_matcher_spec.rb in licensee-8.9.2 vs spec/licensee/matchers/dice_matcher_spec.rb in licensee-9.0.0.beta.1

- old
+ new

@@ -3,11 +3,11 @@ let(:gpl) { Licensee::License.find('gpl-3.0') } let(:agpl) { Licensee::License.find('agpl-3.0') } let(:cc_by) { Licensee::License.find('cc-by-4.0') } let(:cc_by_sa) { Licensee::License.find('cc-by-sa-4.0') } let(:content) { sub_copyright_info(gpl.content) } - let(:file) { Licensee::Project::LicenseFile.new(content, 'LICENSE.txt') } + 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 @@ -48,10 +48,9 @@ let(:content) do sub_copyright_info(mit.content) + "\n\n" + sub_copyright_info(gpl.content) end it "doesn't match" do - skip 'Stacked MIT + GPL not properly detected' expect(content).to_not be_detected_as(gpl) expect(subject.match).to eql(nil) expect(subject.matches).to be_empty expect(subject.confidence).to eql(0) end