]> source.dussan.org Git - redmine.git/commitdiff
Fixed a failing assertion in test_post_edit_with_attachment_only that would
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 2 Oct 2008 02:40:29 +0000 (02:40 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 2 Oct 2008 02:40:29 +0000 (02:40 +0000)
occur when running the full test suite but not the functional test suite.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1922 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index 517aee3a85cc15e623af9af24e9ce3d264536579..6a4775cbd2f1df1f8416027f951a6baaaf13788c 100644 (file)
@@ -495,6 +495,10 @@ class IssuesControllerTest < Test::Unit::TestCase
   def test_post_edit_with_attachment_only
     set_tmp_attachments_directory
     
+    # Delete all fixtured journals, a race condition can occur causing the wrong
+    # journal to get fetched in the next find.
+    Journal.delete_all
+
     # anonymous user
     post :edit,
          :id => 1,