Patch #4502 » fix_test.patch
test/unit/query_test.rb | ||
---|---|---|
659 | 659 |
end |
660 | 660 | |
661 | 661 |
def test_operator_tomorrow |
662 |
issue = Issue.generate!(:due_date => User.current.today.tomorrow) |
|
663 |
other_issues = [] |
|
664 |
other_issues << Issue.generate!(:due_date => User.current.today.yesterday) |
|
665 |
other_issues << Issue.generate!(:due_date => User.current.today + 2) |
|
662 | 666 |
query = IssueQuery.new(:project => Project.find(1), :name => '_') |
663 | 667 |
query.add_filter('due_date', 'nd', ['']) |
664 | 668 |
issues = find_issues_with_query(query) |
665 |
assert !issues.empty?
|
|
666 |
issues.each {|issue| assert_equal Date.today.tomorrow, issue.due_date}
|
|
669 |
assert_include issue, issues
|
|
670 |
other_issues.each {|i| assert_not_include i, issues }
|
|
667 | 671 |
end |
668 | 672 | |
669 | 673 |
def test_operator_date_periods |
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »