diff options
author | Go MAEDA <maeda@farend.jp> | 2018-04-28 23:31:49 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-04-28 23:31:49 +0000 |
commit | 8662c7ef8b9211166ea2a40f6a972ffa29987714 (patch) | |
tree | 833264a2d7d0db401187ace9f752b75d5a178a58 /test | |
parent | 07f0c2791edcbb73f5a5ef01410ee5666a79c6d1 (diff) | |
download | redmine-8662c7ef8b9211166ea2a40f6a972ffa29987714.tar.gz redmine-8662c7ef8b9211166ea2a40f6a972ffa29987714.zip |
Filter for version name should be case-insensitive (#27122).
Patch by Holger Just and Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17316 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/version_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb index fe4993ca6..40014375a 100644 --- a/test/unit/version_test.rb +++ b/test/unit/version_test.rb @@ -277,6 +277,14 @@ class VersionTest < ActiveSupport::TestCase assert_equal false, version.deletable? end + def test_like_scope + version = Version.create!(:project => Project.find(1), :name => 'Version for like scope test') + + assert_includes Version.like('VERSION FOR LIKE SCOPE TEST'), version + assert_includes Version.like('version for like scope test'), version + assert_includes Version.like('like scope'), version + end + private def add_issue(version, attributes={}) |