##// END OF EJS Templates
scm: darcs: run both of "inline" and "side by side" diff in functional test_diff test....
Toshi MARUYAMA -
r5856:6bcdd2a097b2
parent child
Show More
@@ -91,16 +91,18 class RepositoriesDarcsControllerTest < ActionController::TestCase
91 @repository.fetch_changesets
91 @repository.fetch_changesets
92 @repository.reload
92 @repository.reload
93 # Full diff of changeset 5
93 # Full diff of changeset 5
94 get :diff, :id => PRJ_ID, :rev => 5
94 ['inline', 'sbs'].each do |dt|
95 get :diff, :id => PRJ_ID, :rev => 5, :type => dt
95 assert_response :success
96 assert_response :success
96 assert_template 'diff'
97 assert_template 'diff'
97 # Line 22 removed
98 # Line 22 removed
98 assert_tag :tag => 'th',
99 assert_tag :tag => 'th',
99 :content => /22/,
100 :content => '22',
100 :sibling => { :tag => 'td',
101 :sibling => { :tag => 'td',
101 :attributes => { :class => /diff_out/ },
102 :attributes => { :class => /diff_out/ },
102 :content => /def remove/ }
103 :content => /def remove/ }
103 end
104 end
105 end
104 else
106 else
105 puts "Darcs test repository NOT FOUND. Skipping functional tests !!!"
107 puts "Darcs test repository NOT FOUND. Skipping functional tests !!!"
106 def test_fake; assert true end
108 def test_fake; assert true end
General Comments 0
You need to be logged in to leave comments. Login now