diff --git a/lib/licensee/license.rb b/lib/licensee/license.rb index 791774c..2f2f59a 100644 --- a/lib/licensee/license.rb +++ b/lib/licensee/license.rb @@ -125,7 +125,7 @@ module Licensee # Returns the human-readable license name def name - title ? title : key.capitalize + title || spdx_id end def name_without_version diff --git a/spec/licensee/content_helper_spec.rb b/spec/licensee/content_helper_spec.rb index 797d057..efbe734 100644 --- a/spec/licensee/content_helper_spec.rb +++ b/spec/licensee/content_helper_spec.rb @@ -25,7 +25,7 @@ RSpec.describe Licensee::ContentHelper do This license provided 'as is'. Please respect the contributors' wishes when implementing the license's "software". ----------- -LICENSE + LICENSE end subject { ContentHelperTestHelper.new(content) } let(:mit) { Licensee::License.find('mit') } diff --git a/spec/licensee/license_spec.rb b/spec/licensee/license_spec.rb index 3255b00..216bbfc 100644 --- a/spec/licensee/license_spec.rb +++ b/spec/licensee/license_spec.rb @@ -201,7 +201,7 @@ RSpec.describe Licensee::License do end it 'uses the default name when none exists' do - expect(other.name).to eql('Other') + expect(other.name).to eql('NOASSERTION') end it 'expoeses the nickname' do