From edeb84a07052974420d785a6b5123838bea7e39f 2010-05-01 10:09:20 From: Jean-Philippe Lang Date: 2010-05-01 10:09:20 Subject: [PATCH] Fixes strange random test failures with Mysql. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3724 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index f3624de..1097419 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -1111,6 +1111,10 @@ class IssuesControllerTest < ActionController::TestCase end should "allow changing the issue's attributes" do + # Fixes random test failure with Mysql + # where Issue.all(:limit => 2, :order => 'id desc', :conditions => {:project_id => 2}) doesn't return the expected results + Issue.delete_all("project_id=2") + @request.session[:user_id] = 2 assert_difference 'Issue.count', 2 do assert_no_difference 'Project.find(1).issues.count' do