summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-11-08 11:29:33 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-11-08 11:29:33 -0800
commitd35e8be1e2e027ad21724f8ea91909688a2bd3d9 (patch)
tree40751dc663b1e16c59cd5b81962c33625537221f
parent1b0fddec894dc166de99a61e8243468a1a4c47ee (diff)
downloadchef-lcg/12-systemd-fixes.tar.gz
-rw-r--r--spec/unit/provider/service/systemd_service_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/provider/service/systemd_service_spec.rb b/spec/unit/provider/service/systemd_service_spec.rb
index 7fa1d11336..90b669a459 100644
--- a/spec/unit/provider/service/systemd_service_spec.rb
+++ b/spec/unit/provider/service/systemd_service_spec.rb
@@ -248,12 +248,12 @@ describe Chef::Provider::Service::Systemd do
it "should return true if '#{systemctl_path} is-active service_name' returns 0" do
expect(provider).to receive(:shell_out).with("#{systemctl_path} is-active #{service_name} --quiet").and_return(shell_out_success)
- expect(provider.is_active?).to be_true
+ expect(provider.is_active?).to be true
end
it "should return false if '#{systemctl_path} is-active service_name' returns anything except 0" do
expect(provider).to receive(:shell_out).with("#{systemctl_path} is-active #{service_name} --quiet").and_return(shell_out_failure)
- expect(provider.is_active?).to be_false
+ expect(provider.is_active?).to be false
end
end
@@ -266,12 +266,12 @@ describe Chef::Provider::Service::Systemd do
it "should return true if '#{systemctl_path} is-enabled service_name' returns 0" do
expect(provider).to receive(:shell_out).with("#{systemctl_path} is-enabled #{service_name} --quiet").and_return(shell_out_success)
- expect(provider.is_enabled?).to be_true
+ expect(provider.is_enabled?).to be true
end
it "should return false if '#{systemctl_path} is-enabled service_name' returns anything except 0" do
expect(provider).to receive(:shell_out).with("#{systemctl_path} is-enabled #{service_name} --quiet").and_return(shell_out_failure)
- expect(provider.is_enabled?).to be_false
+ expect(provider.is_enabled?).to be false
end
end
end