@@ -157,7 +157,8 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 | get :diff, :id => PRJ_ID, :rev => 1, :type => dt | |||
161 | assert_response :success |
|
162 | assert_response :success | |
162 | assert_template 'diff' |
|
163 | assert_template 'diff' | |
163 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, |
|
164 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, | |
@@ -171,6 +172,7 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
171 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, |
|
172 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, | |
172 | :content => /test\/sources\/watchers_controller.rb/ |
|
173 | :content => /test\/sources\/watchers_controller.rb/ | |
173 | end |
|
174 | end | |
|
175 | end | |||
174 |
|
176 | |||
175 | def test_annotate |
|
177 | def test_annotate | |
176 | @repository.fetch_changesets |
|
178 | @repository.fetch_changesets |
General Comments 0
You need to be logged in to leave comments.
Login now