diff --git a/.ci/fixtures/new_provider_sync.yml b/.ci/fixtures/new_provider_sync.yml index 6341b0e952dec9dd05b72e925b3db3bfad4abd55..63c67d6cb8fb4e4ef214700e780313efe3db7cf9 100644 --- a/.ci/fixtures/new_provider_sync.yml +++ b/.ci/fixtures/new_provider_sync.yml @@ -7,5 +7,5 @@ spec/spec_helper.rb: mock_with: ':rspec' .rubocop.yml: default_configs: - Lint/EnsureReturn: + Performance/CaseWhenSplat: Enabled: false diff --git a/.ci/test_script.sh b/.ci/test_script.sh index 0484889077544d0a2ec4da10b9e55aba8d3eca60..e1535f90c0c1779065532d1acd95ce37c0e26b7f 100755 --- a/.ci/test_script.sh +++ b/.ci/test_script.sh @@ -13,7 +13,9 @@ pdk new module new_module --template-url="file://$TEMPLATE_PR_DIR" --template-re pushd new_module grep template < metadata.json cp "$TEMPLATE_PR_DIR/.ci/fixtures/new_provider_sync.yml" ./.sync.yml +grep -A 1 "Performance/CaseWhenSplat" ./.rubocop.yml | grep -q "true" # Ensure that the template is applied pdk update --force +grep -A 1 "Performance/CaseWhenSplat" ./.rubocop.yml | grep -q "false" # Ensure that the update command changes the template pdk new class new_module pdk new defined_type test_type pdk new fact test_fact || true # not available in pdk 1.18 yet