mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 21:08:48 +01:00
Make LIKE searches case-insensitive also on PgSQL
This commit is contained in:
parent
e89511aec8
commit
bbb9fc8809
7 changed files with 21 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue