Skip to content

Commit 6a8e53d

Browse files
committed
Fix bug in ordering on Travis
1 parent 56b13df commit 6a8e53d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spec/ajax-datatables-rails/orm/active_record_filter_records_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@
503503

504504
it 'should filter records matching' do
505505
datatable.params[:columns]['4'][:search][:value] = '1|2'
506+
datatable.params[:order]['0'] = { column: '4', dir: 'asc' }
506507
expect(datatable.data.size).to eq 2
507508
item = datatable.data.first
508509
expect(item[:first_name]).to eq 'john'

spec/support/datatable_cond_numeric.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def view_columns
4242

4343
class DatatableCondInWithRegex < DatatableCondIn
4444
def view_columns
45-
super.deep_merge(post_id: { cond: :in, use_regex: false, formatter: ->(str) { cast_regex_value(str) } })
45+
super.deep_merge(post_id: { cond: :in, use_regex: false, orderable: true, formatter: ->(str) { cast_regex_value(str) } })
4646
end
4747

4848
def cast_regex_value(value)

0 commit comments

Comments
 (0)