Improve Recipe::DSL#task spec readability
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user