diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-17 16:30:14 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-17 16:30:14 -0600 |
| commit | f926b7970700dbc31df9886d62f3267edd7e62e8 (patch) | |
| tree | 74e5456b3f66342515f808ee0bdffe1c38b51bd6 /spec/unit/core | |
| parent | 5918883f5b587167a8f56f02d0cbbe7709efbcc5 (diff) | |
fix linter warnings
Diffstat (limited to 'spec/unit/core')
| -rw-r--r-- | spec/unit/core/guess_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/core/parser_spec.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/core/guess_spec.rb b/spec/unit/core/guess_spec.rb index 9edb93d..058b4f6 100644 --- a/spec/unit/core/guess_spec.rb +++ b/spec/unit/core/guess_spec.rb @@ -32,7 +32,7 @@ RSpec.describe Spandx::Core::Guess do end end - pending 'does not contain any duplicate names' do + specify 'does not contain any duplicate names' do items = Hash.new { |hash, key| hash[key] = 0 } active_licenses.each { |license| items[license.name] += 1 } expect(items.find_all { |_x, y| y > 1 }).to be_empty diff --git a/spec/unit/core/parser_spec.rb b/spec/unit/core/parser_spec.rb index ab9be03..9ad5bea 100644 --- a/spec/unit/core/parser_spec.rb +++ b/spec/unit/core/parser_spec.rb @@ -3,15 +3,15 @@ RSpec.describe Spandx::Core::Parser do subject { described_class } - describe ".for" do - describe "when the `composer.lock` file is empty" do + describe '.for' do + describe 'when the `composer.lock` file is empty' do let(:empty_file) { fixture_file('empty/composer.lock') } let(:result) { subject.for(empty_file) } specify { expect(result).to be(Spandx::Core::Parser::UNKNOWN) } end - describe "when the `composer.lock` file is discovered" do + describe 'when the `composer.lock` file is discovered' do let(:lock_file) { fixture_file('composer/composer.lock') } let(:result) { subject.for(lock_file) } |
