Skip to content

Commit 9f70a85

Browse files
author
Nicolas Rodriguez
committed
Fix test with Postgres
1 parent d447c14 commit 9f70a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
result = datatable.send(:build_conditions_for_selected_columns)
9292
expect(result).to respond_to(:to_sql)
9393
expect(result.to_sql).to eq(
94-
"CAST(\"users\".\"username\" AS TEXT) ILIKE '%doe%' AND CAST(\"users\".\"email\" AS TEXT) ILIKE '%example%'"
94+
"CAST(\"users\".\"username\" AS VARCHAR) ILIKE '%doe%' AND CAST(\"users\".\"email\" AS VARCHAR) ILIKE '%example%'"
9595
)
9696
end
9797
end

0 commit comments

Comments
 (0)