fix 2 more tests

This commit is contained in:
Tim Felgentreff 2010-09-14 19:18:28 +02:00
parent e8af8d1945
commit 3b51eb54ea
2 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ class Query < ActiveRecord::Base
# Returns the journals
# Valid options are :order, :offset, :limit
def journals(options={})
Journal.find :all, :include => [:user, {:issue => [:project, :author, :tracker, :status]}],
Journal.find :all, :include => [:user, :journaled],
:conditions => statement,
:order => options[:order],
:limit => options[:limit],

View File

@ -996,7 +996,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_response 302
issue = Issue.find(1)
journal = issue.journals.find(:first, :order => 'created_on DESC')
journal = issue.journals.find(:first, :order => 'created_at DESC')
assert_equal '777', issue.custom_value_for(2).value
assert_equal 1, journal.details.size
assert_equal '125', journal.details.first.old_value