fix 2 more tests
This commit is contained in:
parent
e8af8d1945
commit
3b51eb54ea
|
@ -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],
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue