Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Nov 19, 2020
1 parent 4c82762 commit 1fe9c8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/y2partitioner/clients/main_test.rb
Expand Up @@ -156,6 +156,10 @@
context "and it is not allowed to commit" do
let(:allow_commit) { false }

before do
allow(Yast::WFM).to receive(:Args).and_return(["test.xml"])
end

it "shows a message" do
expect(Yast2::Popup).to receive(:show).with(/commit is not allowed/)

Expand Down

0 comments on commit 1fe9c8f

Please sign in to comment.