Skip to content

Commit

Permalink
acceptance tests: properly cleanup between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed May 23, 2024
1 parent 94eb1d1 commit 5db58eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/acceptance/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
end
end

shell('yum clean all --verbose; rm -rf /etc/yum.repos.d/puppet-tools-release.repo; yum erase --assumeyes puppet-bolt puppet-tools-release')
describe command('yum clean all --verbose; rm -rf /etc/yum.repos.d/puppet-tools-release.repo; yum erase --assumeyes puppet-bolt puppet-tools-release') do
its(:exit_status) { is_expected.to eq 0 }
end

describe 'with manually managed repo' do
it_behaves_like 'an idempotent resource' do
let(:manifest) do
Expand Down

0 comments on commit 5db58eb

Please sign in to comment.