git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10425
e93f8b46-1217-0410-a6f0-
8f06a7374b81
# remove leading a/ b/
@file_name = arg.sub(%r{^(a|b)/}, '')
end
+ when "Subversion"
+ # removing trailing "(revision nn)"
+ @file_name = arg.sub(%r{\t+\(.*\)$}, '')
else
@file_name = arg
end
get :diff, :id => PRJ_ID, :rev => 3, :type => dt
assert_response :success
assert_template 'diff'
- assert_tag :tag => 'h2',
- :content => / 3/
+ assert_select 'h2', :text => /Revision 3/
+ assert_select 'th.filename', :text => 'subversion_test/textfile.txt'
end
end