diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-12-07 04:36:47 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-12-07 04:36:47 +0000 |
commit | b66e68dc82c70f755edab6f8f47ef91eaa5627d1 (patch) | |
tree | 41e8084a4083c439b60d07e2105f6441bbd9d3d1 /test/unit | |
parent | 0d04e6bd5778cd5d2ade1f2f255d1350d932afc0 (diff) | |
download | redmine-b66e68dc82c70f755edab6f8f47ef91eaa5627d1.tar.gz redmine-b66e68dc82c70f755edab6f8f47ef91eaa5627d1.zip |
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
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/project_nested_set_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/project_nested_set_test.rb b/test/unit/project_nested_set_test.rb index 3ecd78512..c56330ef6 100644 --- a/test/unit/project_nested_set_test.rb +++ b/test/unit/project_nested_set_test.rb @@ -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') |