Project

General

Profile

Patch #34595 » 0003-Add-a-test-for-34595.patch

Marius BĂLTEANU, 2021-03-15 23:51

View differences:

test/unit/lib/redmine/project_jump_box_test.rb
assert_equal @onlinestore, pjb.recently_used_projects.first
assert_equal @ecookbook, pjb.recently_used_projects.last
end
def test_recents_list_should_include_only_visible_projects
@user = User.find_by_login 'dlopper'
User.current = @user
pjb = Redmine::ProjectJumpBox.new @user
pjb.project_used @ecookbook
pjb.project_used @onlinestore
assert_equal 1, pjb.recently_used_projects.size
assert_equal @ecookbook, pjb.recently_used_projects.first
end
end
(2-2/4)