mirror of
https://github.com/redmine/redmine.git
synced 2026-07-01 00:18:56 +02:00
fix ProjectNestedSetTest fails randomly
<pre>
1) Error:
ProjectNestedSetTest#test_adding_a_root_to_first_position_should_update_nested_set_order:
ActiveRecord::RecordInvalid: Validation failed: trackers is invalid, trackers is invalid, trackers is invalid
test/unit/project_nested_set_test.rb:27:in `setup'
</pre>
You can reproduce with following change.
<pre>
class ProjectNestedSetTest < ActiveSupport::TestCase
+ fixtures :trackers
</pre>
git-svn-id: http://svn.redmine.org/redmine/trunk@13730 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -21,6 +21,7 @@ class ProjectNestedSetTest < ActiveSupport::TestCase
|
||||
|
||||
def setup
|
||||
Project.delete_all
|
||||
Tracker.delete_all
|
||||
|
||||
@a = Project.create!(:name => 'A', :identifier => 'projecta')
|
||||
@a1 = Project.create!(:name => 'A1', :identifier => 'projecta1')
|
||||
|
||||
Reference in New Issue
Block a user