summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-03-26 01:47:48 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-03-26 01:47:48 +0000
commit3c83d1c6464019dd0e1c8c0ca08798bb8570a6e0 (patch)
tree9948cf3a9d15813dc0597e7249e7786a85aea0b1 /test/test_helper.rb
parente4cf210fa24ebe134d38a977270a1ebf150a90e8 (diff)
downloadredmine-3c83d1c6464019dd0e1c8c0ca08798bb8570a6e0.tar.gz
redmine-3c83d1c6464019dd0e1c8c0ca08798bb8570a6e0.zip
fix always new lft and rgt are lft = 1, rgt = 2 (#6579)
git-svn-id: http://svn.redmine.org/redmine/trunk@13009 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index bc1a350a2..14f2d003f 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -221,7 +221,8 @@ class ActiveSupport::TestCase
# It seems correct behavior because of this line comment.
# https://github.com/collectiveidea/awesome_nested_set/blame/199fca9bb9/lib/awesome_nested_set/model.rb#L278
def new_issue_lft
- ::AwesomeNestedSet::VERSION > "2.1.6" ? Issue.maximum(:rgt) + 1 : 1
+ # ::AwesomeNestedSet::VERSION > "2.1.6" ? Issue.maximum(:rgt) + 1 : 1
+ Issue.maximum(:rgt) + 1
end
end