summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2021-03-08 20:39:37 -0700
committermo khan <mo@mokhan.ca>2021-03-08 20:39:37 -0700
commit7e5c64ce11e46adce8d3ffccf4a120837d795785 (patch)
tree06009c27aec44abc8192736c00fd5d15ec780987 /spec
parentf3ce5f7011c4a8915711b83a1f02d6ab5946d3d7 (diff)
test: remove version matcher in large spec
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/ruby/parsers/gemfile_lock_spec.rb127
1 files changed, 64 insertions, 63 deletions
diff --git a/spec/unit/ruby/parsers/gemfile_lock_spec.rb b/spec/unit/ruby/parsers/gemfile_lock_spec.rb
index 4adcc1b..217abd6 100644
--- a/spec/unit/ruby/parsers/gemfile_lock_spec.rb
+++ b/spec/unit/ruby/parsers/gemfile_lock_spec.rb
@@ -37,72 +37,73 @@ RSpec.describe Spandx::Ruby::Parsers::GemfileLock do
let(:spandx) { subject.find { |x| x.name == 'spandx' } }
specify do
- expect(subject).to match_array([
- build('addressable', '2.7.0', path),
- build('ast', '2.4.2', path),
- build('benchmark-ips', '2.8.4', path),
- build('benchmark-malloc', '0.2.0', path),
- build('benchmark-perf', '0.6.0', path),
- build('benchmark-trend', '0.4.0', path),
- build('bundler-audit', '0.7.0.1', path),
- build('byebug', '11.1.3', path),
- build('crack', '0.4.5', path),
- build('diff-lcs', '1.4.4', path),
- build('dotenv', '2.7.6', path),
- build('faraday', '1.3.0', path),
- build('faraday-net_http', '1.0.1', path),
- build('hashdiff', '1.0.1', path),
- build('licensed', '2.14.3', path),
- build('licensee', '9.14.1', path),
- build('mini_portile2', '2.5.0', path),
- build('multipart-post', '2.1.1', path),
- build('net-hippie', '1.1.1', path),
- build('nokogiri', '1.11.1', path),
- build('octokit', '4.20.0', path),
- build('oj', '3.11.2', path),
- build('parallel', '1.20.1', path),
- build('parser', '3.0.0.0', path),
- build('parslet', '2.0.0', path),
- build('pathname-common_prefix', '0.0.1', path),
- build('public_suffix', '4.0.6', path),
- build('racc', '1.5.2', path),
- build('rainbow', '3.0.0', path),
- build('rake', '13.0.3', path),
- build('rake-compiler', '1.1.1', path),
- build('rbtree3', '0.6.0', path),
- build('regexp_parser', '2.0.3', path),
- build('reverse_markdown', '1.4.0', path),
- build('rexml', '3.2.4', path),
- build('rspec', '3.10.0', path),
- build('rspec-benchmark', '0.6.0', path),
- build('rspec-core', '3.10.1', path),
- build('rspec-expectations', '3.10.1', path),
- build('rspec-mocks', '3.10.2', path),
- build('rspec-support', '3.10.2', path),
- build('rubocop', '0.93.1', path),
- build('rubocop-ast', '1.4.1', path),
- build('rubocop-rspec', '1.44.1', path),
- build('ruby-prof', '1.4.2', path),
- build('ruby-progressbar', '1.11.0', path),
- build('ruby-xxHash', '0.4.0.1', path),
- build('ruby2_keywords', '0.0.4', path),
- build('rugged', '1.1.0', path),
- build('sawyer', '0.8.2', path),
- build('set', '1.0.1', path),
- build('sorted_set', '1.0.2', path),
- build('spandx', Spandx::VERSION, path),
- build('terminal-table', '1.8.0', path),
- build('thor', '1.1.0', path),
- build('tomlrb', '1.3.0', path),
- build('tty-cursor', '0.7.1', path),
- build('tty-spinner', '0.9.3', path),
- build('unicode-display_width', '1.7.0', path),
- build('vcr', '6.0.0', path),
- build('webmock', '3.11.2', path),
- build('zeitwerk', '2.4.2', path),
+ expect(subject.map(&:name)).to match_array([
+ 'addressable',
+ 'ast',
+ 'benchmark-ips',
+ 'benchmark-malloc',
+ 'benchmark-perf',
+ 'benchmark-trend',
+ 'bundler-audit',
+ 'byebug',
+ 'crack',
+ 'diff-lcs',
+ 'dotenv',
+ 'faraday',
+ 'faraday-net_http',
+ 'hashdiff',
+ 'licensed',
+ 'licensee',
+ 'mini_portile2',
+ 'multipart-post',
+ 'net-hippie',
+ 'nokogiri',
+ 'octokit',
+ 'oj',
+ 'parallel',
+ 'parser',
+ 'parslet',
+ 'pathname-common_prefix',
+ 'public_suffix',
+ 'racc',
+ 'rainbow',
+ 'rake',
+ 'rake-compiler',
+ 'rbtree3',
+ 'regexp_parser',
+ 'reverse_markdown',
+ 'rexml',
+ 'rspec',
+ 'rspec-benchmark',
+ 'rspec-core',
+ 'rspec-expectations',
+ 'rspec-mocks',
+ 'rspec-support',
+ 'rubocop',
+ 'rubocop-ast',
+ 'rubocop-rspec',
+ 'ruby-prof',
+ 'ruby-progressbar',
+ 'ruby-xxHash',
+ 'ruby2_keywords',
+ 'rugged',
+ 'sawyer',
+ 'set',
+ 'sorted_set',
+ 'spandx',
+ 'terminal-table',
+ 'thor',
+ 'tomlrb',
+ 'tty-cursor',
+ 'tty-spinner',
+ 'unicode-display_width',
+ 'vcr',
+ 'webmock',
+ 'zeitwerk',
])
end
+ specify { expect(subject.map(&:path).uniq).to match_array([path.expand_path]) }
specify { expect(spandx.meta[:platform]).to eql('ruby') }
specify { expect(spandx.meta[:source]).to be_a_kind_of(Bundler::Source) }
end