Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 6, 2017
1 parent 5c0e051 commit 0f1ee91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sysconfig_test.rb
Expand Up @@ -182,7 +182,7 @@
it "restarts associated services" do
allow(Yast::SCR).to receive(:Write).with(path_matching(/^\.syseditor/), anything)

service = Yast::SystemdService.find("postfix")
service = double("postfix_service")
allow(Yast::SystemdService).to receive(:find).with("postfix").and_return service
expect(service).to receive(:active?).and_return true
expect(service).to receive(:restart)
Expand All @@ -194,7 +194,7 @@
it "reloads associated services" do
allow(Yast::SCR).to receive(:Write).with(path_matching(/^\.syseditor/), anything)

service = Yast::SystemdService.find("postfix")
service = double("postfix_service")
allow(Yast::SystemdService).to receive(:find).with("postfix").and_return service
expect(service).to receive(:active?).and_return true
expect(service).to receive(:reload)
Expand Down

0 comments on commit 0f1ee91

Please sign in to comment.