Make LIKE searches case-insensitive also on PgSQL

This commit is contained in:
Jyri-Petteri Paloposki 2020-09-05 01:24:23 +03:00
parent e89511aec8
commit bbb9fc8809
7 changed files with 21 additions and 11 deletions

View file

@ -1,7 +1,7 @@
require 'test_helper'
class SearchControllerTest < ActionController::TestCase
def setup
end
@ -10,12 +10,12 @@ class SearchControllerTest < ActionController::TestCase
get :index
assert_response 200
end
def test_search_for_todo_with_tag
login_as :admin_user
post :results, params: { :search => "gates" }
assert_response 200
assert_equal 3, assigns['count'], "should have found 3 todos"
end
end