Remove Net::SSH story helpers usage in FS specs

This commit is contained in:
Thibault Jouan
2014-03-05 06:47:55 +00:00
parent bf25b05adb
commit b9976464a4
2 changed files with 3 additions and 41 deletions

View File

@@ -48,16 +48,11 @@ module Producer::Core
end
end
# FIXME: We rely a lot on mocking net-sftp heavily, while we already use a
# part of net-ssh story helpers, which are more close to integration tests.
describe '#file?', :ssh do
describe '#file?' do
let(:file_path) { 'some_file_path' }
let(:stat) { double 'stat' }
before do
sftp_story
allow(fs.sftp).to receive(:stat!) { stat }
end
before { allow(sftp).to receive(:stat!) { stat } }
context 'when path given as argument exists' do
context 'when path is a file' do