From 9a9ac12e3c661233161d57f5731705ccd7e14282 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 15 Jul 2020 12:13:58 -0600 Subject: Add composer lock file for test project and fix failing build --- spec/integration/php/composer_spec.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'spec/integration') 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 -- cgit v1.2.3