search_index_columns = table_class.searchable_columns('ilike')
# Disappointing, but text columns aren't indexed yet.
search_index_columns -= table_class.columns.select { |c|
- c.type == :text or c.name == 'description'
+ c.type == :text or c.name == 'description' or c.name == 'file_names'
}.collect(&:name)
indexes = ActiveRecord::Base.connection.indexes(table)
assert group.valid?, "group is not valid"
results = Group.where(created_at: group.created_at)
- assert_equal true, results.map(&:uuid).include?(group.uuid),
+ assert_includes results.map(&:uuid), group.uuid,
"Expected new group uuid in results when searched with its created_at timestamp"
end