Support `mkdir' status attributes

This commit is contained in:
Thibault Jouan
2014-10-08 11:21:32 +00:00
parent 6f2ff17b94
commit a84b34b7ca
7 changed files with 53 additions and 33 deletions

View File

@@ -3,7 +3,8 @@ module Producer::Core
include TestEnvHelpers
let(:arguments) { [:some, :arguments] }
subject(:action) { described_class.new(env, *arguments) }
let(:options) { { foo: :bar } }
subject(:action) { described_class.new(env, *arguments, options) }
describe '#env' do
it 'returns the assigned env' do
@@ -17,6 +18,12 @@ module Producer::Core
end
end
describe '#options' do
it 'returns the assigned options' do
expect(action.options).to eq options
end
end
describe '#input' do
it 'returns env input' do
expect(action.input).to be env.input