Skip to content

Commit

Permalink
Adding test case
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasAud committed Mar 14, 2024
1 parent 2b53876 commit d88c8cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/fixtures/new_provider_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ spec/spec_helper.rb:
mock_with: ':rspec'
.rubocop.yml:
default_configs:
Lint/EnsureReturn:
Performance/CaseWhenSplat:
Enabled: false
2 changes: 2 additions & 0 deletions .ci/test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d88c8cb

Please sign in to comment.