Skip to content

Commit

Permalink
Merge pull request #33 from timlkelly/fix-rubocop-offense
Browse files Browse the repository at this point in the history
RSpec/IndexedLet
  • Loading branch information
timlkelly authored Mar 17, 2024
2 parents 8381959 + b4e8859 commit f618d28
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 f618d28

Please sign in to comment.