spec/licensee/matchers/dice_matcher_spec.rb in licensee-9.2.1 vs spec/licensee/matchers/dice_matcher_spec.rb in licensee-9.3.0
- old
+ new
@@ -2,11 +2,11 @@
let(:mit) { Licensee::License.find('mit') }
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(:content) { sub_copyright_info(gpl) }
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)
@@ -44,10 +44,10 @@
end
end
context 'stacked licenses' do
let(:content) do
- sub_copyright_info(mit.content) + "\n\n" + sub_copyright_info(gpl.content)
+ sub_copyright_info(mit) + "\n\n" + sub_copyright_info(gpl)
end
it "doesn't match" do
expect(content).to_not be_detected_as(gpl)
expect(subject.match).to eql(nil)