diff options
| author | Can Eldem <celdem@gitlab.com> | 2020-07-16 09:21:12 +0000 |
|---|---|---|
| committer | Can Eldem <celdem@gitlab.com> | 2020-07-16 09:21:12 +0000 |
| commit | 0b5e882fd2fcdf4aa7daba982fffce0bba062a25 (patch) | |
| tree | 1d4d3d217a57b99de14c8c1c42ab9f4dfe126143 /spec/integration | |
| parent | f04805cf7b490b9ef9492e4ddc115ab7c2845ab6 (diff) | |
| parent | 9a9ac12e3c661233161d57f5731705ccd7e14282 (diff) | |
Merge branch 'lock-composer-fixture' into 'master'
Add composer lock file for test project and fix failing build
See merge request gitlab-org/security-products/license-management!190
Diffstat (limited to 'spec/integration')
| -rw-r--r-- | spec/integration/php/composer_spec.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/spec/integration/php/composer_spec.rb b/spec/integration/php/composer_spec.rb index c186285..11ebdce 100644 --- a/spec/integration/php/composer_spec.rb +++ b/spec/integration/php/composer_spec.rb @@ -4,16 +4,17 @@ RSpec.describe "composer" do include_examples "each report version", "php", "composer" context "when the project's dependencies require php-gd e.g. in the case of Drupal" do - it 'installs the required dependencies and produces a valid report' do - # composer.json from https://git.drupalcode.org/project/drupal/raw/8.7.x/core/composer.json - runner.add_file('composer.json', fixture_file_content('php/drupal_composer.json')) + subject { runner.scan } - report = runner.scan + before do + runner.mount(dir: fixture_file('php/drupal-composer')) + end - expect(report).to match_schema - expect(report[:version]).not_to be_empty - expect(report[:licenses]).not_to be_empty - expect(report.dependency_names).to match_array(%w[ + it 'installs the required dependencies and produces a valid report' do + expect(subject).to match_schema + expect(subject[:version]).not_to be_empty + expect(subject[:licenses]).not_to be_empty + expect(subject.dependency_names).to match_array(%w[ asm89/stack-cors behat/mink behat/mink-browserkit-driver @@ -95,6 +96,7 @@ RSpec.describe "composer" do symfony/polyfill-ctype symfony/polyfill-iconv symfony/polyfill-intl-idn + symfony/polyfill-intl-normalizer symfony/polyfill-mbstring symfony/polyfill-php56 symfony/polyfill-php70 |
