Skip to content

Commit

Permalink
updated testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Oct 6, 2017
1 parent 0d0aea5 commit 993a51d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/proposal_runner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Yast.import "ProductControl"
Yast.import "GetInstArgs"
Yast.import "Mode"
Yast.import "Packages"

describe ::Installation::ProposalRunner do
let(:autoyast_proposals) { [] }
Expand Down Expand Up @@ -64,8 +65,9 @@ class C < ::Installation::ProposalStore; end
allow(Yast::Language).to receive(:language).and_return("en_US")
end

it "do nothing if run non-interactive" do
it "checks remote environment and returns -auto- in autoyast mode" do
allow(Yast::Mode).to receive(:autoinst).and_return(true)
expect(Yast::Packages).to receive(:check_remote_installation_packages).and_return("")

expect(subject.run).to eq :auto
end
Expand Down

0 comments on commit 993a51d

Please sign in to comment.