diff options
author | Go MAEDA <maeda@farend.jp> | 2020-07-06 14:06:52 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-07-06 14:06:52 +0000 |
commit | b15d6fc544033c580e28036d217c97edf75218a9 (patch) | |
tree | 6c940da3b6cfbe388ac16fb209d8d15388f51485 /test/unit/lib/redmine | |
parent | d050d515448607798f20bb91284654ea78d26c6a (diff) | |
download | redmine-b15d6fc544033c580e28036d217c97edf75218a9.tar.gz redmine-b15d6fc544033c580e28036d217c97edf75218a9.zip |
Always preserve the tree structure in the project jump box (#32944).
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@19861 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine')
-rw-r--r-- | test/unit/lib/redmine/project_jump_box_test.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/unit/lib/redmine/project_jump_box_test.rb b/test/unit/lib/redmine/project_jump_box_test.rb index a9a7e284d..5842354c5 100644 --- a/test/unit/lib/redmine/project_jump_box_test.rb +++ b/test/unit/lib/redmine/project_jump_box_test.rb @@ -28,13 +28,10 @@ class Redmine::ProjectJumpBoxTest < ActiveSupport::TestCase @onlinestore = Project.find 'onlinestore' end - def test_should_filter_bookmarked_projects + def test_should_find_bookmarked_projects pjb = Redmine::ProjectJumpBox.new @user pjb.bookmark_project @ecookbook - assert_equal 1, pjb.bookmarked_projects.size - assert_equal 0, pjb.bookmarked_projects('online').size - assert_equal 1, pjb.bookmarked_projects('ecook').size end def test_should_not_include_bookmark_in_recently_used_list @@ -47,13 +44,10 @@ class Redmine::ProjectJumpBoxTest < ActiveSupport::TestCase assert_equal 0, pjb.recently_used_projects.size end - def test_should_filter_recently_used_projects + def test_should_find_recently_used_projects pjb = Redmine::ProjectJumpBox.new @user pjb.project_used @ecookbook - assert_equal 1, pjb.recently_used_projects.size - assert_equal 0, pjb.recently_used_projects('online').size - assert_equal 1, pjb.recently_used_projects('ecook').size end def test_should_limit_recently_used_projects @@ -64,8 +58,6 @@ class Redmine::ProjectJumpBoxTest < ActiveSupport::TestCase @user.pref.recently_used_projects = 1 assert_equal 1, pjb.recently_used_projects.size - assert_equal 1, pjb.recently_used_projects('online').size - assert_equal 0, pjb.recently_used_projects('ecook').size end def test_should_record_recently_used_projects_order |