Skip to content

Commit

Permalink
RSpec/IndexedLet
Browse files Browse the repository at this point in the history
  • Loading branch information
timlkelly committed Mar 17, 2024
1 parent 8381959 commit b4e8859
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/onesie/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b4e8859

Please sign in to comment.