Commit 3b7e7be7 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixes odd test failures.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3212 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 87e83c72
......@@ -805,7 +805,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_redirected_to :action => 'show', :id => '1'
issue.reload
assert_equal 2, issue.status_id
j = issue.journals.find(:first, :order => 'id DESC')
j = Journal.find(:first, :order => 'id DESC')
assert_equal 'Assigned to dlopper', j.notes
assert_equal 2, j.details.size
......@@ -822,7 +822,7 @@ class IssuesControllerTest < ActionController::TestCase
:id => 1,
:notes => notes
assert_redirected_to :action => 'show', :id => '1'
j = Issue.find(1).journals.find(:first, :order => 'id DESC')
j = Journal.find(:first, :order => 'id DESC')
assert_equal notes, j.notes
assert_equal 0, j.details.size
assert_equal User.anonymous, j.user
......@@ -844,7 +844,7 @@ class IssuesControllerTest < ActionController::TestCase
issue = Issue.find(1)
j = issue.journals.find(:first, :order => 'id DESC')
j = Journal.find(:first, :order => 'id DESC')
assert_equal '2.5 hours added', j.notes
assert_equal 0, j.details.size
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment