Skip to content

Commit

Permalink
Merge pull request #494 from mchf/ro_sw
Browse files Browse the repository at this point in the history
Updated mocking and fixed typo in testsuite.
  • Loading branch information
mchf committed Jan 18, 2017
2 parents 98a90bf + cab5fb4 commit b9241ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/proposal_runner_test.rb
Expand Up @@ -171,11 +171,12 @@ class C < ::Installation::ProposalStore; end
.and_call_original

# we need ProposalStore#make_proposal to call the callback
expect(Yast::WFM)
# for some reason mocking using expect do not work in this case
allow(Yast::WFM)
.to receive(:CallFunction)
.and_return(
"preformated_proposal" => "",
"warning_lever" => :error
"warning_level" => :error
)
expect(subject)
.to receive(:html_header)
Expand Down

0 comments on commit b9241ed

Please sign in to comment.