summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-19 09:18:08 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-19 09:18:08 -0700
commit63af2f044ec4b3da91adb717fbde200139de0e16 (patch)
tree1bf4450d0c08bbea114412b0244f8dbf888af809
parent61086ef5aa015fd59d7841959b887e798f5bffba (diff)
downloadchef-63af2f044ec4b3da91adb717fbde200139de0e16.tar.gz
Fix spec describe names
This was missed in a code review of #10323 Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/resource/timezone_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource/timezone_spec.rb b/spec/unit/resource/timezone_spec.rb
index 9f27c28d4f..9e1b7dbfbe 100644
--- a/spec/unit/resource/timezone_spec.rb
+++ b/spec/unit/resource/timezone_spec.rb
@@ -62,7 +62,7 @@ systemd-timesyncd.service active: yes
expect { resource.action :unset }.to raise_error(Chef::Exceptions::ValidationFailed)
end
- describe "#current_macos_tz?" do
+ describe "#current_macos_tz" do
context "with admin privs" do
it "returns the TZ" do
expect(resource).to receive(:shell_out!).and_return(shellout_systemsetup)
@@ -78,21 +78,21 @@ systemd-timesyncd.service active: yes
end
end
- describe "#current_systemd_tz?" do
+ describe "#current_systemd_tz" do
it "returns the TZ" do
expect(resource).to receive(:shell_out).and_return(shellout_timedatectl)
expect(resource.current_systemd_tz).to eql("Etc/UTC")
end
end
- describe "#current_windows_tz?" do
+ describe "#current_windows_tz" do
it "returns the TZ" do
expect(resource).to receive(:shell_out).and_return(shellout_tzutil)
expect(resource.current_windows_tz).to eql("UTC")
end
end
- describe "#current_rhel_tz?" do
+ describe "#current_rhel_tz" do
it "returns the TZ" do
allow(File).to receive(:exist?).with("/etc/sysconfig/clock").and_return true
expect(File).to receive(:read).with("/etc/sysconfig/clock").and_return 'ZONE="UTC"'