mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user