diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-15 19:22:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-15 19:22:13 +0000 |
commit | 30175bf85e4d064abcae5ec971bdb9782e7543ac (patch) | |
tree | 44ef9f6648b964c4dec5c2df0cee0f3acabe21a6 /test/test_helper.rb | |
parent | 15bb695bbb2cfa6b2e1fcdc5fb77e4e0d22f2ad3 (diff) | |
download | redmine-30175bf85e4d064abcae5ec971bdb9782e7543ac.tar.gz redmine-30175bf85e4d064abcae5ec971bdb9782e7543ac.zip |
Restore accent insensitive search with mysql (#18537).
git-svn-id: http://svn.redmine.org/redmine/trunk@13767 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 4677bd7fe..2416609a6 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -167,6 +167,10 @@ class ActiveSupport::TestCase ActiveRecord::Base.connection.adapter_name =~ /sqlite/i end + def mysql? + ActiveRecord::Base.connection.adapter_name =~ /mysql/i + end + def assert_save(object) saved = object.save message = "#{object.class} could not be saved" |