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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue