mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 16:26:03 +01:00
Load changesets and time entries tabs async (#3058).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18275 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -2168,9 +2168,11 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
project.disable_module! :repository
|
||||
|
||||
@request.session[:user_id] = 2
|
||||
get :show, :params => {
|
||||
:id => issue.id
|
||||
}
|
||||
get :issue_tab, :params => {
|
||||
:id => issue.id,
|
||||
:name => 'changesets'
|
||||
},
|
||||
:xhr => true
|
||||
|
||||
assert_select 'a[href=?]', '/projects/ecookbook/repository/10/revisions/3'
|
||||
end
|
||||
@@ -2560,6 +2562,13 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
assert_select 'div.tabs a[id=?]', 'tab-time_entries', :text => 'Spent time'
|
||||
end
|
||||
|
||||
get :issue_tab, :params => {
|
||||
:id => 3,
|
||||
:name => 'time_entries'
|
||||
},
|
||||
:xhr => true
|
||||
assert_response :success
|
||||
|
||||
assert_select 'div[id=?]', 'time-entry-3' do
|
||||
assert_select 'a[title=?][href=?]', 'Edit', '/time_entries/3/edit'
|
||||
assert_select 'a[title=?][href=?]', 'Delete', '/time_entries/3'
|
||||
|
||||
Reference in New Issue
Block a user