mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00: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:
parent
0d04e6bd57
commit
b66e68dc82
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user