Fixed assertion for postgresql and sqlite (#8842).

git-svn-id: http://svn.redmine.org/redmine/trunk@12480 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-01-04 08:22:50 +00:00
parent 3c540594dc
commit 7087dbb5b4
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ class QueryTest < ActiveSupport::TestCase
def test_operator_date_greater_than_with_timestamp def test_operator_date_greater_than_with_timestamp
query = IssueQuery.new(:name => '_') query = IssueQuery.new(:name => '_')
query.add_filter('updated_on', '>=', ['2011-07-10T19:13:52']) query.add_filter('updated_on', '>=', ['2011-07-10T19:13:52'])
assert_match /issues\.updated_on > '2011-07-10 19:13:51'/, query.statement assert_match /issues\.updated_on > '2011-07-10 19:13:51(\.0+)?'/, query.statement
find_issues_with_query(query) find_issues_with_query(query)
end end