Implement `mkdir' task action
This commit is contained in:
1 parent
f147ce7d65
commit
7f5d1a4085
9 files changed
+75
-1
No files matched your search
@@ -0,0 +1,23 @@
|
||||
require 'spec_helper'
|
||||
|
||||
module Producer::Core
|
||||
describe Actions::Mkdir do
|
||||
let(:env) { Env.new }
|
||||
let(:path) { 'some_path' }
|
||||
subject(:mkdir) { Actions::Mkdir.new(env, path) }
|
||||
|
||||
describe '#apply' do
|
||||
it 'creates directory on remote filesystem' do
|
||||
expect(mkdir.fs).to receive(:mkdir).with(path)
|
||||
mkdir.apply
|
||||
end
|
||||
end
|
||||
|
||||
describe '#path' do
|
||||
it 'returns the path' do
|
||||
expect(mkdir.path).to eq path
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user