spec/fixture_spec.rb in licensee-9.14.1 vs spec/fixture_spec.rb in licensee-9.15.0
- old
+ new
@@ -13,11 +13,11 @@
let(:expectations) { fixture_licenses[fixture] || {} }
let(:license_file) { subject.license_file }
let(:matcher) { license_file&.matcher }
it 'has an expected license in fixtures-licenses.yml' do
- msg = 'Expected an entry in `'.dup
+ msg = +'Expected an entry in `'
msg << fixture_path('fixtures-licenses.yml')
msg << "` for the `#{fixture}` fixture. Please run "
msg << 'script/dump-fixture-licenses and confirm the output.'
expect(fixture_licenses).to have_key(fixture), msg
end
@@ -25,10 +25,10 @@
it 'detects the license' do
expected = if expectations['key']
Licensee::License.find(expectations['key'])
else
none
- end
+ end
expect(subject.license).to eql(expected)
end
it 'returns the expected hash' do