fix lint
This commit is contained in:
parent
071167da96
commit
a43176b2d6
1 changed files with 4 additions and 5 deletions
|
@ -10,7 +10,7 @@ RSpec.describe Connections::CursorConnection do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'without explicit args' do
|
context 'without explicit args' do
|
||||||
let(:args) { { } }
|
let(:args) { {} }
|
||||||
|
|
||||||
it { is_expected.to eq(limit: max_page_size + 1, inverted: false) }
|
it { is_expected.to eq(limit: max_page_size + 1, inverted: false) }
|
||||||
end
|
end
|
||||||
|
@ -22,7 +22,7 @@ RSpec.describe Connections::CursorConnection do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when asked for 2 first elements, in order desc' do
|
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) }
|
it { is_expected.to eq(limit: 3, inverted: true) }
|
||||||
end
|
end
|
||||||
|
@ -40,7 +40,7 @@ RSpec.describe Connections::CursorConnection do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when asked for 2 last elements, in order desc' do
|
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) }
|
it { is_expected.to eq(limit: 3, inverted: false) }
|
||||||
end
|
end
|
||||||
|
@ -109,5 +109,4 @@ RSpec.describe Connections::CursorConnection do
|
||||||
it { is_expected.to be true }
|
it { is_expected.to be true }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue