diff options
-rw-r--r-- | test/unit/project_nested_set_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/project_nested_set_test.rb b/test/unit/project_nested_set_test.rb index 07d1a8f16..6f6aa1707 100644 --- a/test/unit/project_nested_set_test.rb +++ b/test/unit/project_nested_set_test.rb @@ -28,17 +28,17 @@ class ProjectNestedSetTest < ActiveSupport::TestCase @a2 = Project.create!(:name => 'A2', :identifier => 'projecta2') @a2.set_parent!(@a) + @c = Project.create!(:name => 'C', :identifier => 'projectc') + @c1 = Project.create!(:name => 'C1', :identifier => 'projectc1') + @c1.set_parent!(@c) + @b = Project.create!(:name => 'B', :identifier => 'projectb') + @b2 = Project.create!(:name => 'B2', :identifier => 'projectb2') + @b2.set_parent!(@b) @b1 = Project.create!(:name => 'B1', :identifier => 'projectb1') @b1.set_parent!(@b) @b11 = Project.create!(:name => 'B11', :identifier => 'projectb11') @b11.set_parent!(@b1) - @b2 = Project.create!(:name => 'B2', :identifier => 'projectb2') - @b2.set_parent!(@b) - - @c = Project.create!(:name => 'C', :identifier => 'projectc') - @c1 = Project.create!(:name => 'C1', :identifier => 'projectc1') - @c1.set_parent!(@c) @a, @a1, @a2, @b, @b1, @b11, @b2, @c, @c1 = *(Project.all.sort_by(&:name)) end |