diff --git a/.ci/fixtures/new_provider_sync.yml b/.ci/fixtures/new_provider_sync.yml index 6341b0e9..63c67d6c 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 04848890..e1535f90 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