Skip to content

Commit

Permalink
Improve test example wording further
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Moravec committed Mar 21, 2014
1 parent db61ea9 commit 63b14ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/systemd/test/systemd_service_test.rb
Expand Up @@ -70,10 +70,10 @@ module Yast

context "Start a service on the installation system" do
it "starts a service with a specialized inst-sys helper if available" do
File.stub(:exist?).and_return(true)
File.stub(:exist?).with('/bin/service_start').and_return(true)
service = SystemdService.find("sshd")
SCR.stub(:Execute).and_return({'stderr'=>'', 'stdout'=>'', 'exit'=>0})
expect(service).not_to receive(:command)
expect(service).not_to receive(:command) # SystemdUnit#command
expect(service.start).to be_true
end
end
Expand Down

0 comments on commit 63b14ae

Please sign in to comment.