tests: fix rails 2.7 keyword parameter deprecation warnings.

This commit is contained in:
evazion
2020-05-25 01:48:46 -05:00
parent 66a66cc952
commit 20f8a26709
29 changed files with 44 additions and 44 deletions

View File

@@ -13,10 +13,10 @@ module PaginationExtension
@paginator_count = 1_000_000
end
if page =~ /\Ab(\d+)\z/i
if page.to_s =~ /\Ab(\d+)\z/i
@paginator_mode = :sequential_before
paginate_sequential_before($1, records_per_page)
elsif page =~ /\Aa(\d+)\z/i
elsif page.to_s =~ /\Aa(\d+)\z/i
@paginator_mode = :sequential_after
paginate_sequential_after($1, records_per_page)
else

View File

@@ -49,8 +49,8 @@ class TableBuilder
yield self if block_given?
end
def column(*args, **options, &block)
@columns << Column.new(*args, **options, &block)
def column(...)
@columns << Column.new(...)
end
def all_row_attributes(item, i)