Skip to content

Commit

Permalink
Fix Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsama committed Oct 5, 2023
1 parent e3bc0f7 commit 8979030
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Metrics/BlockLength:
- spec/**/*

Metrics/ClassLength:
Max: 198
Max: 210

Metrics/CyclomaticComplexity:
Max: 15
Expand Down
20 changes: 12 additions & 8 deletions spec/rails_cursor_pagination/paginator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,12 @@
:start_cursor,
:end_cursor

is_expected.to include has_previous_page: expected_has_previous_page,
has_next_page: expected_has_next_page,
start_cursor: expected_start_cursor,
end_cursor: expected_end_cursor
is_expected.to(
include has_previous_page: expected_has_previous_page,
has_next_page: expected_has_next_page,
start_cursor: expected_start_cursor,
end_cursor: expected_end_cursor
)
end
end

Expand Down Expand Up @@ -924,10 +926,12 @@
:start_cursor,
:end_cursor

is_expected.to include has_previous_page: expected_has_previous_page,
has_next_page: expected_has_next_page,
start_cursor: expected_start_cursor,
end_cursor: expected_end_cursor
is_expected.to(
include has_previous_page: expected_has_previous_page,
has_next_page: expected_has_next_page,
start_cursor: expected_start_cursor,
end_cursor: expected_end_cursor
)
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Post < ActiveRecord::Base; end
host: ENV.fetch('DB_HOST', nil),
username: ENV.fetch('DB_USER', nil)
)

# Ensure we have an empty `posts` table with the right format
ActiveRecord::Migration.drop_table :posts, if_exists: true

Expand Down

0 comments on commit 8979030

Please sign in to comment.