Rename Remote::FS#{has_,}file?

This commit is contained in:
Thibault Jouan
2014-01-08 22:30:52 +00:00
parent 19b091a15c
commit 103b9d1230
4 changed files with 8 additions and 8 deletions

View File

@@ -14,13 +14,13 @@ module Producer::Core
before { sftp_story }
it 'delegates the call on remote FS' do
expect(env.remote.fs).to receive(:has_file?).with(filepath)
expect(env.remote.fs).to receive(:file?).with(filepath)
has_file.verify
end
it 'returns the file existence' do
existence = double 'existence'
allow(env.remote.fs).to receive(:has_file?) { existence }
allow(env.remote.fs).to receive(:file?) { existence }
expect(has_file.verify).to be existence
end
end