Implement `target' recipe keyword

This commit is contained in:
Thibault Jouan
2014-09-25 01:24:25 +00:00
parent 8fd387b41f
commit a7b2c4abea
3 changed files with 22 additions and 0 deletions

View File

@@ -159,5 +159,13 @@ module Producer::Core
expect(task.get :some_key).to eq :some_value
end
end
describe '#target' do
before { env.target = :some_target }
it 'returns current env target' do
expect(task.target).to eq :some_target
end
end
end
end