summaryrefslogtreecommitdiff
path: root/spec/functional/resource
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-14 13:38:53 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-14 13:38:53 -0700
commita827f24cb7bb0944a30f7787e1784b4d7341ca12 (patch)
tree23943a775e0a682bc47995ae0f085b51b1a56d9b /spec/functional/resource
parentb5b845be5d4f3940f51813064b30380c06ab5337 (diff)
downloadchef-a827f24cb7bb0944a30f7787e1784b4d7341ca12.tar.gz
Convert the functional tests over to macos? as well
I missed these. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/functional/resource')
-rw-r--r--spec/functional/resource/link_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/link_spec.rb b/spec/functional/resource/link_spec.rb
index 3c8e90a6b2..c1de3bf99d 100644
--- a/spec/functional/resource/link_spec.rb
+++ b/spec/functional/resource/link_spec.rb
@@ -653,7 +653,7 @@ describe Chef::Resource::Link do
end
context "and the link does not yet exist" do
it "links to the target file" do
- skip("macOS/FreeBSD/AIX/Solaris symlink? and readlink working on hard links to symlinks") if os_x? || freebsd? || aix? || solaris?
+ skip("macOS/FreeBSD/AIX/Solaris symlink? and readlink working on hard links to symlinks") if macos? || freebsd? || aix? || solaris?
resource.run_action(:create)
expect(File.exist?(target_file)).to be_truthy
# macOS gets angry about this sort of link. Bug in macOS, IMO.
@@ -672,7 +672,7 @@ describe Chef::Resource::Link do
end
context "and the link does not yet exist" do
it "links to the target file" do
- skip("macOS/FreeBSD/AIX/Solaris fails to create hardlinks to broken symlinks") if os_x? || freebsd? || aix? || solaris?
+ skip("macOS/FreeBSD/AIX/Solaris fails to create hardlinks to broken symlinks") if macos? || freebsd? || aix? || solaris?
resource.run_action(:create)
expect(File.exist?(target_file) || File.symlink?(target_file)).to be_truthy
expect(symlink?(target_file)).to be_truthy