##// END OF EJS Templates
scm: cvs: run both of "inline" and "side by side" diff in functional test_diff test....
Toshi MARUYAMA -
r5857:28f3d9a8710e
parent child
Show More
@@ -143,13 +143,15 class RepositoriesCvsControllerTest < ActionController::TestCase
143 def test_diff
143 def test_diff
144 @repository.fetch_changesets
144 @repository.fetch_changesets
145 @repository.reload
145 @repository.reload
146 get :diff, :id => PRJ_ID, :rev => 3, :type => 'inline'
146 ['inline', 'sbs'].each do |dt|
147 assert_response :success
147 get :diff, :id => PRJ_ID, :rev => 3, :type => dt
148 assert_template 'diff'
148 assert_response :success
149 assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_out' },
149 assert_template 'diff'
150 :content => /before_filter :require_login/
150 assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_out' },
151 assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' },
151 :content => /before_filter :require_login/
152 :content => /with one change/
152 assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' },
153 :content => /with one change/
154 end
153 end
155 end
154
156
155 def test_diff_new_files
157 def test_diff_new_files
General Comments 0
You need to be logged in to leave comments. Login now