spec/licensee/license_spec.rb in licensee-9.15.2 vs spec/licensee/license_spec.rb in licensee-9.15.3
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
RSpec.describe Licensee::License do
- let(:license_count) { 43 }
- let(:hidden_license_count) { 30 }
+ let(:license_count) { 47 }
+ let(:hidden_license_count) { 34 }
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
@@ -299,10 +299,15 @@
expect(mit.url).to eql('http://choosealicense.com/licenses/mit/')
end
it 'knows equality' do
expect(described_class.find('mit')).to eql(mit)
+ expect(described_class.find('mit')).to eq(mit)
expect(gpl).not_to eql(mit)
+ end
+
+ it 'returns false when compared to a boolean' do
+ expect(described_class.find('mit')).not_to be(true)
end
it 'knows if a license is a pseudo license' do
expect(mit).not_to be_pseudo_license
expect(other).to be_pseudo_license