Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning- committed Feb 19, 2024
1 parent 48f3ad8 commit ccf772f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# frozen_string_literal: true

require 'puppet_litmus'
require 'singleton'

class LitmusHelper
include Singleton
include PuppetLitmus
end

RSpec.configure do |c|
c.before :suite do
if os[:family].match?(%r{redhat}i)
LitmusHelper.instance.run_shell('dnf -y install dnf-plugins-core')
LitmusHelper.instance.run_shell('dnf config-manager --set-enabled powertools')
end
end
end

0 comments on commit ccf772f

Please sign in to comment.