spec/licensee/license_spec.rb in licensee-9.6.0 vs spec/licensee/license_spec.rb in licensee-9.7.0
- old
+ new
@@ -1,8 +1,8 @@
RSpec.describe Licensee::License do
- let(:license_count) { 33 }
- let(:hidden_license_count) { 21 }
+ let(:license_count) { 34 }
+ let(:hidden_license_count) { 22 }
let(:featured_license_count) { 3 }
let(:pseudo_license_count) { 2 }
let(:non_featured_license_count) do
license_count - featured_license_count - hidden_license_count
end
@@ -11,10 +11,11 @@
let(:cc_by) { described_class.find('cc-by-4.0') }
let(:unlicense) { described_class.find('unlicense') }
let(:other) { described_class.find('other') }
let(:gpl) { described_class.find('gpl-3.0') }
let(:lgpl) { described_class.find('lgpl-3.0') }
+ let(:content_hash) { '46cdc03462b9af57968df67b450cc4372ac41f53' }
let(:license_dir) do
File.expand_path 'vendor/choosealicense.com/_licenses', project_root
end
@@ -240,10 +241,9 @@
it 'strips leading whitespace' do
expect(mit.content).to start_with('M')
end
it 'computes the hash' do
- content_hash = 'd64f3bb4282a97b37454b5bb96a8a264a3363dc3'
expect(mit.content_hash).to eql(content_hash)
end
context 'with content stubbed' do
let(:license) do