diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-03-05 20:37:08 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-03-05 20:37:08 -0800 |
commit | 7c6ef6bff121a22a9346c8559196e5661551df32 (patch) | |
tree | 1f19ac4fa82694a137d2d6e3934d3bda101a32a6 /spec/unit/provider/link_spec.rb | |
parent | e06e4ae6833fb2ef7cadd154130914aaf300420d (diff) | |
download | chef-link_check.tar.gz |
link resource: Remove checks for link support on Windowslink_check
2008+ have support for links. There's no reason to perform this check
every time on Windows. It's just wasting CPU cycles
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/provider/link_spec.rb')
-rw-r--r-- | spec/unit/provider/link_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/provider/link_spec.rb b/spec/unit/provider/link_spec.rb index 154197e730..30c752b5ea 100644 --- a/spec/unit/provider/link_spec.rb +++ b/spec/unit/provider/link_spec.rb @@ -1,7 +1,7 @@ # # Author:: AJ Christensen (<aj@junglist.gen.nz>) # Author:: John Keiser (<jkeiser@chef.io>) -# Copyright:: Copyright 2008-2018, Chef Software Inc. +# Copyright:: Copyright 2008-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -358,7 +358,6 @@ describe Chef::Resource::Link do allow(Chef::Resource::Link).to receive(:new).with( provider.new_resource.name ).and_return(resource_link) - allow(resource_link).to receive(:verify_links_supported!) allow(ChefUtils).to receive(:windows?).and_return(true) end |