diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-08 11:29:33 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-08 11:29:33 -0800 |
commit | d35e8be1e2e027ad21724f8ea91909688a2bd3d9 (patch) | |
tree | 40751dc663b1e16c59cd5b81962c33625537221f | |
parent | 1b0fddec894dc166de99a61e8243468a1a4c47ee (diff) | |
download | chef-lcg/12-systemd-fixes.tar.gz |
rspec 3 fixeslcg/12-systemd-fixes
-rw-r--r-- | spec/unit/provider/service/systemd_service_spec.rb | 8 |
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 |