@@ -1459,10 +1459,9 class IssueTest < ActiveSupport::TestCase | |||||
1459 | assert_equal 2, groups.inject(0) {|sum, group| sum + group['total'].to_i} |
|
1459 | assert_equal 2, groups.inject(0) {|sum, group| sum + group['total'].to_i} | |
1460 | end |
|
1460 | end | |
1461 |
|
1461 | |||
1462 |
def test_recently_updated_ |
|
1462 | def test_recently_updated_scope | |
1463 | #should return the last updated issue |
|
1463 | #should return the last updated issue | |
1464 |
assert_equal |
|
1464 | assert_equal Issue.reorder("updated_on DESC").first, Issue.recently_updated.limit(1).first | |
1465 | assert_equal Issue.find(:first, :order => "updated_on DESC"), Issue.recently_updated.with_limit(1).first |
|
|||
1466 | end |
|
1465 | end | |
1467 |
|
1466 | |||
1468 | def test_on_active_projects_scope |
|
1467 | def test_on_active_projects_scope |
General Comments 0
You need to be logged in to leave comments.
Login now