Move changesets to its own tab (#3058).

Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18273 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2019-06-20 07:08:27 +00:00
parent b132b8e914
commit be660e11cc
5 changed files with 41 additions and 10 deletions

View File

@@ -2535,6 +2535,21 @@ class IssuesControllerTest < Redmine::ControllerTest
end
end
def test_show_display_changesets_tab_for_issue_with_changesets
project = Project.find(2)
issue = Issue.find(3)
issue.changeset_ids = [102]
issue.save!
@request.session[:user_id] = 2
get :show, :params => {:id => 3}
assert_select '#history' do
assert_select 'div.tabs ul a', 1
assert_select 'div.tabs a[id=?]', 'tab-changesets', :text => 'Associated revisions'
end
end
def test_get_new
@request.session[:user_id] = 2
get :new, :params => {