Skip to content
代码片段 群组 项目
提交 c3342912 编辑于 作者: Luke Duncalfe's avatar Luke Duncalfe
浏览文件

Test with file in temporary dir

上级 8a97696f
No related branches found
No related tags found
无相关合并请求
......@@ -16,7 +16,7 @@
describe '.linked?' do
it 'raises an error when file does not exist' do
expect { subject.linked?('foo') }.to raise_error(Errno::ENOENT)
expect { subject.linked?("#{tmpdir}/foo") }.to raise_error(Errno::ENOENT)
end
shared_examples 'identifies a linked file' do
......@@ -56,7 +56,7 @@
describe '.shares_hard_link?' do
it 'raises an error when file does not exist' do
expect { subject.shares_hard_link?('foo') }.to raise_error(Errno::ENOENT)
expect { subject.shares_hard_link?("#{tmpdir}/foo") }.to raise_error(Errno::ENOENT)
end
shared_examples 'identifies a file that shares a hard link' do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册