This commit is contained in:
Paul Chavard 2023-10-18 13:02:59 +02:00
parent 071167da96
commit a43176b2d6

View file

@ -10,7 +10,7 @@ RSpec.describe Connections::CursorConnection do
end
context 'without explicit args' do
let(:args) { { } }
let(:args) { {} }
it { is_expected.to eq(limit: max_page_size + 1, inverted: false) }
end
@ -22,7 +22,7 @@ RSpec.describe Connections::CursorConnection do
end
context 'when asked for 2 first elements, in order desc' do
let(:args) { { first: 2, order: :desc} }
let(:args) { { first: 2, order: :desc } }
it { is_expected.to eq(limit: 3, inverted: true) }
end
@ -40,11 +40,11 @@ RSpec.describe Connections::CursorConnection do
end
context 'when asked for 2 last elements, in order desc' do
let(:args) { { last: 2, order: :desc} }
let(:args) { { last: 2, order: :desc } }
it { is_expected.to eq(limit: 3, inverted: false) }
end
context '' do
let(:args) { { after: :after, first: 2 } }
@ -109,5 +109,4 @@ RSpec.describe Connections::CursorConnection do
it { is_expected.to be true }
end
end
end