From a2ae72c9e3dcc649e4d155f38ce99b2995a76e25 Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Mon, 11 Dec 2017 17:27:54 +0100 Subject: [PATCH] using AutoinstData instead of AutoinstConfig --- test/lib/clients/software_proposal_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/clients/software_proposal_test.rb b/test/lib/clients/software_proposal_test.rb index c2be450af..f432ebaef 100755 --- a/test/lib/clients/software_proposal_test.rb +++ b/test/lib/clients/software_proposal_test.rb @@ -72,13 +72,13 @@ end it "returns warning message if second stage is not possible" do - allow(Yast::AutoinstConfig).to receive(:check_second_stage_environment) + allow(Yast::AutoinstData).to receive(:autoyast_second_stage_error) .and_return("second_error") expect(subject.make_proposal({})["warning"]).to include("second_error") end it "returns no warning if second stage is possible" do - expect(Yast::AutoinstConfig).to receive(:check_second_stage_environment).and_return("") + expect(Yast::AutoinstData).to receive(:autoyast_second_stage_error).and_return("") expect(subject.make_proposal({})).to_not have_key("warning") end end