diff --git a/spec/beaker/host/unix/pkg_spec.rb b/spec/beaker/host/unix/pkg_spec.rb index 73ba6d83c..16febc71d 100644 --- a/spec/beaker/host/unix/pkg_spec.rb +++ b/spec/beaker/host/unix/pkg_spec.rb @@ -270,7 +270,7 @@ def exec it "uses dnf on amazon-2023" do @opts = { 'platform' => "amazon-2023-is-me" } pkg = 'amazon_package' - expect(Beaker::Command).to receive(:new).with("dnf -y install #{pkg}", [], { :prepend_cmds => nil, :cmdexe => false }).and_return('') + expect(Beaker::Command).to receive(:new).with("yum -y install #{pkg}", [], { :prepend_cmds => nil, :cmdexe => false }).and_return('') expect(instance).to receive(:exec).with('', {}).and_return(generate_result("hello", { :exit_code => 0 })) expect(instance.install_package(pkg)).to be == "hello" end