Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Moravec committed May 30, 2014
1 parent f7ca0b4 commit dbcd615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/runlevel/test/service_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def stub_service_with method, result

describe ".call" do
it "raises error if command name or service name parameter is missing" do
expect(Service.call(:start)).to raise_error
expect{ Service.call(:start) }.to raise_error
end

it "returns the result of the original result of the command call" do
stub_service_with(:"try-restart", false)
expect(Service.call(:"try-restart", "sshd")).to be_false
stub_service_with(:"try_restart", false)
expect(Service.call(:"try_restart", "sshd")).to be_false
end
end

Expand Down

0 comments on commit dbcd615

Please sign in to comment.