File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def _paginate_collection(collection, options={})
46
46
headers [ 'Link' ] = links . join ( ', ' ) unless links . empty?
47
47
headers [ per_page_header ] = options [ :per_page ] . to_s
48
48
headers [ page_header ] = options [ :page ] . to_s unless page_header . nil?
49
- headers [ total_header ] = total_count ( collection , options ) if include_total
49
+ headers [ total_header ] = total_count ( collection , options ) . to_s if include_total
50
50
51
51
return collection
52
52
end
Original file line number Diff line number Diff line change 212
212
213
213
specify do
214
214
get :index_with_paginate_array_options , params : params
215
+
216
+ expect ( response . header [ 'Total' ] ) . to be_kind_of ( String )
215
217
expect ( response . header [ 'Total' ] . to_i ) . to eq total_header
216
218
end
217
219
end
You can’t perform that action at this time.
0 commit comments