spec/licensee/license_spec.rb in licensee-8.7.0 vs spec/licensee/license_spec.rb in licensee-8.8.0

- old
+ new

@@ -166,10 +166,15 @@ it 'knows if a license is GPL' do expect(mit).to_not be_gpl expect(gpl).to be_gpl end + + it 'knows if a license is CC' do + expect(gpl).to_not be_creative_commons + expect(cc_by).to be_creative_commons + end end context 'content' do it 'returns the license content' do expect(mit.content).to match('Permission is hereby granted') @@ -178,10 +183,10 @@ it 'strips leading whitespace' do expect(mit.content).to start_with('M') end it 'computes the hash' do - expect(mit.hash).to eql('750260c322080bab4c19fd55eb78bc73e1ae8f11') + expect(mit.hash).to eql('d64f3bb4282a97b37454b5bb96a8a264a3363dc3') end context 'with content stubbed' do let(:license) do license = described_class.new 'MIT'