Skip to content

Commit

Permalink
Fix in testsuite.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Jan 24, 2017
1 parent bed8507 commit 92c4ccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/proposal_runner_test.rb
Expand Up @@ -60,6 +60,8 @@ class C < ::Installation::ProposalStore; end
.with("keyboard_proposal", ["Description", {}]).and_return(keyboard_description)
allow(Yast::WFM).to receive(:CallFunction)
.with("hwinfo_proposal", ["Description", {}]).and_return(hwinfo_description)
# Language class is missing in buildroot -> mock it
allow(Yast::Language).to receive(:language).and_return("en_US")
end

it "do nothing if run non-interactive" do
Expand Down Expand Up @@ -171,7 +173,6 @@ class C < ::Installation::ProposalStore; end
.and_call_original

# we need ProposalStore#make_proposal to call the callback
# for some reason mocking using expect do not work in this case
allow(Yast::WFM)
.to receive(:CallFunction)
.and_return(
Expand Down

0 comments on commit 92c4ccd

Please sign in to comment.