summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-05-01 10:09:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-05-01 10:09:20 +0000
commitedeb84a07052974420d785a6b5123838bea7e39f (patch)
tree0ea226739700e6307cfa0c1933a95ba0b41f2793 /test/functional
parent6a8dc735d30d39e4424855623f0db4fb1afbc76f (diff)
downloadredmine-edeb84a07052974420d785a6b5123838bea7e39f.tar.gz
redmine-edeb84a07052974420d785a6b5123838bea7e39f.zip
Fixes strange random test failures with Mysql.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3724 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb4
1 files changed, 4 insertions, 0 deletions
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