Implement Action#remote (delegates to remote.fs)

This commit is contained in:
Thibault Jouan
2014-01-09 00:51:16 +00:00
parent 29c26ab961
commit cdc3128727
4 changed files with 10 additions and 3 deletions

View File

@@ -8,8 +8,8 @@ module Producer::Core
subject(:writer) { Actions::FileWriter.new(env, path, content) }
describe '#apply' do
it 'writes the content to remote file' do
expect(writer.remote.fs).to receive(:file_write).with(path, content)
it 'writes content to file on remote filesystem' do
expect(writer.fs).to receive(:file_write).with(path, content)
writer.apply
end
end