mirror of
https://github.com/redmine/redmine.git
synced 2026-07-20 21:41:01 +02:00
Merged r17316 from trunk to 3.4-stable (#27122).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17317 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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={})
|
||||
|
||||
Reference in New Issue
Block a user