Improve Recipe::DSL#task spec readability

This commit is contained in:
Thibault Jouan 2013-07-29 13:41:55 +00:00
parent c642584c95
commit 0ac6217245

View File

@ -64,11 +64,11 @@ module Producer::Core
end end
describe '#task' do describe '#task' do
let(:code) { Proc.new { task(:one); task(:two) } } let(:code) { Proc.new { task(:first); task(:last) } }
it 'registers tasks in declaration order' do it 'registers tasks in declaration order' do
expect(dsl.tasks[0].name).to eq :one expect(dsl.tasks[0].name).to eq :first
expect(dsl.tasks[1].name).to eq :two expect(dsl.tasks[1].name).to eq :last
end end
end end
end end