Skip to content

Commit

Permalink
using AutoinstData instead of AutoinstConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Dec 11, 2017
1 parent 1294879 commit a2ae72c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/clients/software_proposal_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2ae72c

Please sign in to comment.