spec/licensee/license_spec.rb in licensee-8.8.5 vs spec/licensee/license_spec.rb in licensee-8.9.0
- old
+ new
@@ -1,8 +1,8 @@
RSpec.describe Licensee::License do
- let(:license_count) { 30 }
- let(:hidden_license_count) { 18 }
+ let(:license_count) { 32 }
+ let(:hidden_license_count) { 20 }
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
@@ -33,11 +33,11 @@
expect(licenses).to all be_a(Licensee::License)
expect(licenses.count).to eql(license_count - hidden_license_count)
end
it "doesn't include hidden licenses" do
- expect(licenses).to all satisfy { |license| !license.hidden? }
+ expect(licenses).to all(satisfy { |license| !license.hidden? })
end
it 'includes featured licenses' do
expect(licenses).to include(mit)
expect(licenses).to_not include(cc_by)
@@ -236,7 +236,12 @@
it 'returns rules by tag and group' do
expect(cc_by.rules).to have_key('limitations')
rule = cc_by.rules['limitations'].find { |r| r.tag == 'patent-use' }
expect(rule).to_not be_nil
expect(rule.description).to include('does NOT grant')
+
+ expect(gpl.rules).to have_key('permissions')
+ rule = gpl.rules['permissions'].find { |r| r.tag == 'patent-use' }
+ expect(rule).to_not be_nil
+ expect(rule.description).to include('an express grant of patent rights')
end
end