@@ -157,19 +157,21 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
157 | def test_diff_new_files |
|
157 | def test_diff_new_files | |
158 | @repository.fetch_changesets |
|
158 | @repository.fetch_changesets | |
159 | @repository.reload |
|
159 | @repository.reload | |
160 | get :diff, :id => PRJ_ID, :rev => 1, :type => 'inline' |
|
160 | ['inline', 'sbs'].each do |dt| | |
161 | assert_response :success |
|
161 | get :diff, :id => PRJ_ID, :rev => 1, :type => dt | |
162 | assert_template 'diff' |
|
162 | assert_response :success | |
163 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, |
|
163 | assert_template 'diff' | |
164 | :content => /watched.remove_watcher/ |
|
164 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, | |
165 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, |
|
165 | :content => /watched.remove_watcher/ | |
166 | :content => /test\/README/ |
|
166 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, | |
167 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, |
|
167 | :content => /test\/README/ | |
168 | :content => /test\/images\/delete.png / |
|
168 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, | |
169 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, |
|
169 | :content => /test\/images\/delete.png / | |
170 | :content => /test\/images\/edit.png/ |
|
170 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, | |
171 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, |
|
171 | :content => /test\/images\/edit.png/ | |
172 | :content => /test\/sources\/watchers_controller.rb/ |
|
172 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, | |
|
173 | :content => /test\/sources\/watchers_controller.rb/ | |||
|
174 | end | |||
173 | end |
|
175 | end | |
174 |
|
176 | |||
175 | def test_annotate |
|
177 | def test_annotate |
General Comments 0
You need to be logged in to leave comments.
Login now