From: Jean-Philippe Lang Date: Fri, 10 Dec 2010 17:40:33 +0000 (+0000) Subject: Fixes unsafe assertion that may cause failures. X-Git-Tag: 1.1.0~111 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10ba08ce13f2cfd088fb8eba0d8dd1be6145acc1;p=redmine.git Fixes unsafe assertion that may cause failures. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4485 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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