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