@@ -91,15 +91,17 class RepositoriesDarcsControllerTest < ActionController::TestCase | |||
|
91 | 91 | @repository.fetch_changesets |
|
92 | 92 | @repository.reload |
|
93 | 93 | # Full diff of changeset 5 |
|
94 | get :diff, :id => PRJ_ID, :rev => 5 | |
|
95 | assert_response :success | |
|
96 | assert_template 'diff' | |
|
97 | # Line 22 removed | |
|
98 | assert_tag :tag => 'th', | |
|
99 | :content => /22/, | |
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
94 | ['inline', 'sbs'].each do |dt| | |
|
95 | get :diff, :id => PRJ_ID, :rev => 5, :type => dt | |
|
96 | assert_response :success | |
|
97 | assert_template 'diff' | |
|
98 | # Line 22 removed | |
|
99 | assert_tag :tag => 'th', | |
|
100 | :content => '22', | |
|
101 | :sibling => { :tag => 'td', | |
|
102 | :attributes => { :class => /diff_out/ }, | |
|
103 | :content => /def remove/ } | |
|
104 | end | |
|
103 | 105 | end |
|
104 | 106 | else |
|
105 | 107 | puts "Darcs test repository NOT FOUND. Skipping functional tests !!!" |
General Comments 0
You need to be logged in to leave comments.
Login now