summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index bc2d178c1..9f4274830 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -30,7 +30,6 @@ require Rails.root.join('test', 'mocks', 'open_id_authentication_mock.rb').to_s
require File.expand_path(File.dirname(__FILE__) + '/object_helpers')
include ObjectHelpers
-require 'awesome_nested_set/version'
require 'net/ldap'
class ActionView::TestCase
@@ -214,15 +213,9 @@ class ActiveSupport::TestCase
mail.parts.first.body.encoded
end
- # awesome_nested_set new node lft and rgt value changed this refactor revision.
- # https://github.com/collectiveidea/awesome_nested_set/commit/199fca9bb938e40200cd90714dc69247ef017c61
- # The reason of behavior change is that "self.class.base_class.unscoped" was added to this line.
- # https://github.com/collectiveidea/awesome_nested_set/commit/199fca9bb9#diff-f61b59a5e6319024e211b0ffdd0e4ef1R273
- # 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
+ # Returns the lft value for a new root issue
def new_issue_lft
- # ::AwesomeNestedSet::VERSION > "2.1.6" ? Issue.maximum(:rgt) + 1 : 1
- Issue.maximum(:rgt) + 1
+ 1
end
end