From a43176b2d6b4d36a7369f5f7ce4c3d30f6bf907c Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 18 Oct 2023 13:02:59 +0200 Subject: [PATCH] fix lint --- spec/graphql/connections/cursor_connection_spec.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/graphql/connections/cursor_connection_spec.rb b/spec/graphql/connections/cursor_connection_spec.rb index 925266eab..6952eb8fc 100644 --- a/spec/graphql/connections/cursor_connection_spec.rb +++ b/spec/graphql/connections/cursor_connection_spec.rb @@ -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