diff options
| author | mo khan <mo.khan@gmail.com> | 2020-01-15 16:25:16 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-01-15 16:25:16 -0700 |
| commit | 34f162a4903d852d47bd5440839f7519eb6fa8f0 (patch) | |
| tree | ce9ec33580f0e6e3f9cf3df1aab2f2cf7b5601cb /spec | |
| parent | 06d2844938465c84f908139db7e7a3abc4e3cd6d (diff) | |
Match dependency names
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/integration/python/pipenv_spec.rb | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/spec/integration/python/pipenv_spec.rb b/spec/integration/python/pipenv_spec.rb index 4d6559c..1ea60fe 100644 --- a/spec/integration/python/pipenv_spec.rb +++ b/spec/integration/python/pipenv_spec.rb @@ -26,7 +26,7 @@ RSpec.describe "pipenv" do expect(report).to match_schema(version: '2.0') expect(report[:version]).not_to be_empty expect(report[:licenses]).not_to be_empty - expect(report[:dependencies].map { |x| x[:name] }).to include("six") + expect(report[:dependencies].map { |x| x[:name] }).to contain_exactly("six") end end @@ -72,7 +72,26 @@ RSpec.describe "pipenv" do expect(report).not_to be_empty expect(report[:version]).not_to be_empty expect(report[:licenses]).not_to be_empty - expect(report[:dependencies].count).to eql(18) + expect(report[:dependencies].map { |x| x[:name] }).to match_array([ + "appdirs", + "backports.shutil_get_terminal_size", + "click", + "colorama", + "crayons", + "delegator.py", + "packaging", + "parse", + "pexpect", + "ptyprocess", + "py", + "pyparsing", + "pytest", + "requests", + "requirements-parser", + "setuptools", + "six", + "toml", + ]) end end @@ -121,7 +140,9 @@ RSpec.describe "pipenv" do expect(report).not_to be_empty expect(report[:version]).not_to be_empty expect(report[:licenses]).not_to be_empty - expect(report[:dependencies].count).to eql(7) + expect(report[:dependencies].map { |x| x[:name] }).to match_array([ + 'certifi', 'chardet', 'idna', 'requests', 'urllib3', 'py', 'pytest' + ]) end end end |
