]> source.dussan.org Git - redmine.git/commitdiff
Fixed test failure with ruby1.8.7 and postgresql (#17976).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 30 Sep 2014 20:41:15 +0000 (20:41 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 30 Sep 2014 20:41:15 +0000 (20:41 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13420 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/group_test.rb

index d3b5d20ecd1effd2869346dcc56ae82ab39d98fc..fa5ded8f1b5fb169a6c56e76a606af5a0c84ebae 100644 (file)
@@ -125,7 +125,7 @@ class GroupTest < ActiveSupport::TestCase
   end
 
   def test_destroy_should_unassign_issues
-    group = Group.first
+    group = Group.find(10)
     Issue.where(:id => 1).update_all(["assigned_to_id = ?", group.id])
 
     assert group.destroy