@@ -143,13 +143,15 class RepositoriesCvsControllerTest < ActionController::TestCase | |||
|
143 | 143 | def test_diff |
|
144 | 144 | @repository.fetch_changesets |
|
145 | 145 | @repository.reload |
|
146 | get :diff, :id => PRJ_ID, :rev => 3, :type => 'inline' | |
|
147 | assert_response :success | |
|
148 | assert_template 'diff' | |
|
149 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_out' }, | |
|
150 | :content => /before_filter :require_login/ | |
|
151 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, | |
|
152 | :content => /with one change/ | |
|
146 | ['inline', 'sbs'].each do |dt| | |
|
147 | get :diff, :id => PRJ_ID, :rev => 3, :type => dt | |
|
148 | assert_response :success | |
|
149 | assert_template 'diff' | |
|
150 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_out' }, | |
|
151 | :content => /before_filter :require_login/ | |
|
152 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, | |
|
153 | :content => /with one change/ | |
|
154 | end | |
|
153 | 155 | end |
|
154 | 156 | |
|
155 | 157 | def test_diff_new_files |
General Comments 0
You need to be logged in to leave comments.
Login now