Skip to content

Commit

Permalink
(CAT-1618) - Add code coverage to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Jan 8, 2024
1 parent 933eb26 commit c51bd4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
secrets: "inherit"
with:
rake_task: 'spec:coverage'
ruby_version: ${{ matrix.ruby_version }}

acceptance:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def run
option_keys << :cwd
option_keys << :run_as

Specinfra::Configuration.singleton_class.send(:remove_const, :VALID_OPTIONS_KEYS)
Specinfra::Configuration.singleton_class.send(:remove_const, :VALID_OPTIONS_KEYS) # rubocop:disable RSpec/RemoveConst
Specinfra::Configuration.singleton_class.const_set(:VALID_OPTIONS_KEYS, option_keys.freeze)
RSpec.configuration.add_setting :cwd
RSpec.configuration.add_setting :run_as
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/pdk/config/namespace_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def spec_simple_validator
expect([config.fetch(:foo, 'default'), config.fetch('foo', 'default')]).to all(eq('bar'))
end

it 'will return the specified default value for unknown values' do
it 'returns the specified default value for unknown values' do
expect([config.fetch(:missing, 'default'), config.fetch('missing', 'default')]).to all(eq('default'))
end

Expand Down

0 comments on commit c51bd4e

Please sign in to comment.