From edeb84a07052974420d785a6b5123838bea7e39f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 1 May 2010 10:09:20 +0000 Subject: Fixes strange random test failures with Mysql. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3724 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/functional') diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index f3624de21..1097419ff 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 -- cgit v1.2.3