From b4e8859236f20d11c7a856e0e64ee5ecbb5962cb Mon Sep 17 00:00:00 2001 From: Tim Kelly Date: Sun, 17 Mar 2024 12:25:21 -0500 Subject: [PATCH] RSpec/IndexedLet --- spec/onesie/runner_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/onesie/runner_spec.rb b/spec/onesie/runner_spec.rb index a6ef4ad..dccc66d 100644 --- a/spec/onesie/runner_spec.rb +++ b/spec/onesie/runner_spec.rb @@ -18,13 +18,13 @@ end context 'with tasks out of version order' do - let(:task1) { instance_double(Onesie::TaskProxy, version: '20211122223807') } - let(:task2) { instance_double(Onesie::TaskProxy, version: '20211124224842') } - let(:task3) { instance_double(Onesie::TaskProxy, version: '20211125224842') } - let(:tasks) { [task2, task3, task1] } + let(:task_one) { instance_double(Onesie::TaskProxy, version: '20211122223807') } + let(:task_two) { instance_double(Onesie::TaskProxy, version: '20211124224842') } + let(:task_three) { instance_double(Onesie::TaskProxy, version: '20211125224842') } + let(:tasks) { [task_two, task_three, task_one] } it 'orders the task by version' do - expect(runner.tasks).to eq([task1, task2, task3]) + expect(runner.tasks).to eq([task_one, task_two, task_three]) end end