diff --git a/lib/producer/core/actions/mkdir.rb b/lib/producer/core/actions/mkdir.rb index ccb7baa..1082e04 100644 --- a/lib/producer/core/actions/mkdir.rb +++ b/lib/producer/core/actions/mkdir.rb @@ -15,6 +15,9 @@ module Producer end end + + private + def path arguments.first end diff --git a/spec/producer/core/actions/mkdir_spec.rb b/spec/producer/core/actions/mkdir_spec.rb index d2c94ce..4e3fc3a 100644 --- a/spec/producer/core/actions/mkdir_spec.rb +++ b/spec/producer/core/actions/mkdir_spec.rb @@ -23,26 +23,6 @@ module Producer::Core end end end - - describe '#path' do - it 'returns the path' do - expect(mkdir.path).to eq path - end - end - - describe '#mode' do - it 'returns nil' do - expect(mkdir.mode).to be nil - end - - context 'when a mode was given' do - subject(:mkdir) { Mkdir.new(env, path, 0700) } - - it 'returns the mode' do - expect(mkdir.mode).to be 0700 - end - end - end end end end