diff options
Diffstat (limited to 'spec/unit/provider/service/systemd_service_spec.rb')
-rw-r--r-- | spec/unit/provider/service/systemd_service_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/provider/service/systemd_service_spec.rb b/spec/unit/provider/service/systemd_service_spec.rb index 2fed6bfd11..2bdbdaad05 100644 --- a/spec/unit/provider/service/systemd_service_spec.rb +++ b/spec/unit/provider/service/systemd_service_spec.rb @@ -82,7 +82,7 @@ describe Chef::Provider::Service::Systemd do it "should run the services status command if one has been specified and properly set status check state" do allow(@provider).to receive(:shell_out).with("/bin/chefhasmonkeypants status").and_return(@shell_out_success) @provider.load_current_resource - expect(@provider.instance_variable_get("@status_check_success")).to be_true + expect(@provider.instance_variable_get("@status_check_success")).to be_truthy end it "should set running to false if a status command fails" do @@ -94,7 +94,7 @@ describe Chef::Provider::Service::Systemd do it "should update state to indicate status check failed when a status command fails" do allow(@provider).to receive(:shell_out).and_return(@shell_out_failure) @provider.load_current_resource - expect(@provider.instance_variable_get("@status_check_success")).to be_false + expect(@provider.instance_variable_get("@status_check_success")).to be_falsey end end @@ -228,12 +228,12 @@ describe Chef::Provider::Service::Systemd do it "should return true if '/bin/systemctl is-active service_name' returns 0" do expect(@provider).to receive(:shell_out).with('/bin/systemctl is-active rsyslog.service --quiet').and_return(@shell_out_success) - expect(@provider.is_active?).to be_true + expect(@provider.is_active?).to be_truthy end it "should return false if '/bin/systemctl is-active service_name' returns anything except 0" do expect(@provider).to receive(:shell_out).with('/bin/systemctl is-active rsyslog.service --quiet').and_return(@shell_out_failure) - expect(@provider.is_active?).to be_false + expect(@provider.is_active?).to be_falsey end end @@ -245,12 +245,12 @@ describe Chef::Provider::Service::Systemd do it "should return true if '/bin/systemctl is-enabled service_name' returns 0" do expect(@provider).to receive(:shell_out).with('/bin/systemctl is-enabled rsyslog.service --quiet').and_return(@shell_out_success) - expect(@provider.is_enabled?).to be_true + expect(@provider.is_enabled?).to be_truthy end it "should return false if '/bin/systemctl is-enabled service_name' returns anything except 0" do expect(@provider).to receive(:shell_out).with('/bin/systemctl is-enabled rsyslog.service --quiet').and_return(@shell_out_failure) - expect(@provider.is_enabled?).to be_false + expect(@provider.is_enabled?).to be_falsey end end end |