summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/functional/resource/link_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/resource/link_spec.rb b/spec/functional/resource/link_spec.rb
index c8f64cbd20..b4c6412e5d 100644
--- a/spec/functional/resource/link_spec.rb
+++ b/spec/functional/resource/link_spec.rb
@@ -582,12 +582,12 @@ describe Chef::Resource::Link do
resource.run_action(:create)
# Windows and Unix have different definitions of exists? here, and that's OK.
if windows?
- File.exists?(target_file).should be_truthy
+ expect(File.exists?(target_file)).to be_truthy
else
- File.exists?(target_file).should be_falsey
+ expect(File.exists?(target_file)).to be_falsey
end
- symlink?(target_file).should be_truthy
- paths_eql?(readlink(target_file), @other_target).should be_truthy
+ expect(symlink?(target_file)).to be_truthy
+ expect(paths_eql?(readlink(target_file), @other_target)).to be_truthy
end
include_context 'delete is noop'
end