From 10ba08ce13f2cfd088fb8eba0d8dd1be6145acc1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 10 Dec 2010 17:40:33 +0000 Subject: [PATCH] Fixes unsafe assertion that may cause failures. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4485 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issue_moves_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/issue_moves_controller_test.rb b/test/functional/issue_moves_controller_test.rb index e8c367964..7bb95f7e8 100644 --- a/test/functional/issue_moves_controller_test.rb +++ b/test/functional/issue_moves_controller_test.rb @@ -58,8 +58,8 @@ class IssueMovesControllerTest < ActionController::TestCase post :create, :ids => [1, 2], :notes => 'Moving two issues' assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook' - assert_equal 'Moving two issues', Issue.find(1).journals.last.notes - assert_equal 'Moving two issues', Issue.find(2).journals.last.notes + assert_equal 'Moving two issues', Issue.find(1).journals.sort_by(&:id).last.notes + assert_equal 'Moving two issues', Issue.find(2).journals.sort_by(&:id).last.notes end -- 2.39.5