Skip to content

Commit

Permalink
testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Mar 6, 2020
1 parent 5a6359a commit e6bcc3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ntp_client_proposal_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@
let(:network_running) { true }

it "returns :ntpdate_failed if synchronization fails" do
allow(Yast::NtpClient).to receive(:sync_once).with(ntp_server).and_return(1)
allow(Yast::NtpClient).to receive(:sync_once).and_return(1)

expect(subject.Write(params)).to eq(:ntpdate_failed)
end

it "returns :success if synchronization was successfully" do
allow(Yast::NtpClient).to receive(:sync_once).with(ntp_server).and_return(0)
allow(Yast::NtpClient).to receive(:sync_once).and_return(0)

expect(subject.Write(params)).to eq(:success)
end
Expand Down

0 comments on commit e6bcc3e

Please sign in to comment.