mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 17:26:06 +01:00
use git diff format for all diff (#11868)
Mercurial diff uses git format. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10428 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -371,6 +371,20 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_diff_should_show_modified_filenames
|
||||
get :diff, :id => PRJ_ID, :rev => '400bb8672109', :type => 'inline'
|
||||
assert_response :success
|
||||
assert_template 'diff'
|
||||
assert_select 'th.filename', :text => 'sources/watchers_controller.rb'
|
||||
end
|
||||
|
||||
def test_diff_should_show_deleted_filenames
|
||||
get :diff, :id => PRJ_ID, :rev => 'b3a615152df8', :type => 'inline'
|
||||
assert_response :success
|
||||
assert_template 'diff'
|
||||
assert_select 'th.filename', :text => 'sources/welcome_controller.rb'
|
||||
end
|
||||
|
||||
def test_annotate
|
||||
get :annotate, :id => PRJ_ID,
|
||||
:path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param]
|
||||
|
||||
Reference in New Issue
Block a user