diff options
Diffstat (limited to 'test/unit/project_nested_set_test.rb')
-rw-r--r-- | test/unit/project_nested_set_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/project_nested_set_test.rb b/test/unit/project_nested_set_test.rb index 6c856f773..705d5ea8f 100644 --- a/test/unit/project_nested_set_test.rb +++ b/test/unit/project_nested_set_test.rb @@ -166,7 +166,7 @@ class ProjectNestedSetTest < ActiveSupport::TestCase assert project.rgt < project.parent.rgt, "rgt=#{project.rgt} was not < parent.rgt=#{project.parent.rgt} for project #{project.name}" end # no overlapping lft/rgt values - overlapping = projects.detect {|other| + overlapping = projects.detect {|other| other != project && ( (other.lft > project.lft && other.lft < project.rgt && other.rgt > project.rgt) || (other.rgt > project.lft && other.rgt < project.rgt && other.lft < project.lft) |