summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-21 20:02:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-21 20:02:51 +0000
commit3b7e7be72aa249f402f90f0e429cd53308c2ba18 (patch)
treea3cf5a4fef90e07305d1607f558ff34fdbd31e6c /test/functional
parent87e83c7285e928a06e21ebbb1e594006a4a1c392 (diff)
downloadredmine-3b7e7be72aa249f402f90f0e429cd53308c2ba18.tar.gz
redmine-3b7e7be72aa249f402f90f0e429cd53308c2ba18.zip
Fixes odd test failures.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3212 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 6a3745040..e73e24a05 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -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