@@ -232,23 +232,25 class RepositoriesGitControllerTest < ActionController::TestCase | |||||
232 | else |
|
232 | else | |
233 | with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do |
|
233 | with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do | |
234 | ['57ca437c', '57ca437c0acbbcb749821fdf3726a1367056d364'].each do |r1| |
|
234 | ['57ca437c', '57ca437c0acbbcb749821fdf3726a1367056d364'].each do |r1| | |
235 | get :diff, :id => PRJ_ID, :rev => r1 |
|
235 | ['inline', 'sbs'].each do |dt| | |
236 | assert_response :success |
|
236 | get :diff, :id => PRJ_ID, :rev => r1, :type => dt | |
237 |
assert_ |
|
237 | assert_response :success | |
238 |
assert_t |
|
238 | assert_template 'diff' | |
239 | :descendant => { |
|
239 | assert_tag :tag => 'thead', | |
240 | :tag => 'th', |
|
|||
241 | :attributes => { :class => 'filename' } , |
|
|||
242 | :content => /latin-1-dir\/test-#{@char_1}.txt/ , |
|
|||
243 | }, |
|
|||
244 | :sibling => { |
|
|||
245 | :tag => 'tbody', |
|
|||
246 | :descendant => { |
|
240 | :descendant => { | |
247 |
|
|
241 | :tag => 'th', | |
248 |
|
|
242 | :attributes => { :class => 'filename' } , | |
249 |
|
|
243 | :content => /latin-1-dir\/test-#{@char_1}.txt/ , | |
|
244 | }, | |||
|
245 | :sibling => { | |||
|
246 | :tag => 'tbody', | |||
|
247 | :descendant => { | |||
|
248 | :tag => 'td', | |||
|
249 | :attributes => { :class => /diff_in/ }, | |||
|
250 | :content => /test-#{@char_1}.txt/ | |||
|
251 | } | |||
250 | } |
|
252 | } | |
251 |
|
|
253 | end | |
252 | end |
|
254 | end | |
253 | end |
|
255 | end | |
254 | end |
|
256 | end |
General Comments 0
You need to be logged in to leave comments.
Login now