Skip to content

Commit

Permalink
rubocop: fix RSpec/EmptyExampleGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Feb 11, 2022
1 parent a770b2b commit 9eb9fbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions spec/classes/init_spec.rb
Expand Up @@ -265,6 +265,8 @@
let(:params) { super().merge(repo_exclusions: ['base']) }
end

it { is_expected.to compile.with_all_deps }

case facts[:os]['name']
when 'CentOS'
it { is_expected.not_to contain_yumrepo('base') }
Expand Down Expand Up @@ -580,6 +582,8 @@
end

context 'when utils_package_name is not set' do
it { is_expected.to compile.with_all_deps }

case facts[:os]['name']
when 'Fedora'
it { is_expected.to contain_package('dnf-utils') }
Expand Down
4 changes: 2 additions & 2 deletions spec/defines/post_transaction_action_spec.rb
Expand Up @@ -81,7 +81,7 @@
it { is_expected.to contain_concat__fragment('post_trans_an entry').with_content(%r{^/etc/\*:any:foo bar$}) }
end

context 'with simple package name and state in (dnf only option)' do
context 'with simple package name and state in (dnf only option)' do # rubocop:disable RSpec/EmptyExampleGroup
let(:params) do
{
key: 'openssh',
Expand All @@ -98,7 +98,7 @@
end
end

context 'with simple package name and state install (yum only option)' do
context 'with simple package name and state install (yum only option)' do # rubocop:disable RSpec/EmptyExampleGroup
let(:params) do
{
key: 'openssh',
Expand Down

0 comments on commit 9eb9fbb

Please sign in to comment.