@@ -110,15 +110,17 class RepositoriesBazaarControllerTest < ActionController::TestCase | |||
|
110 | 110 | |
|
111 | 111 | def test_diff |
|
112 | 112 | # Full diff of changeset 3 |
|
113 | get :diff, :id => PRJ_ID, :rev => 3 | |
|
114 | assert_response :success | |
|
115 | assert_template 'diff' | |
|
116 | # Line 11 removed | |
|
117 | assert_tag :tag => 'th', | |
|
118 | :content => /11/, | |
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
|
113 | ['inline', 'sbs'].each do |dt| | |
|
114 | get :diff, :id => PRJ_ID, :rev => 3, :type => dt | |
|
115 | assert_response :success | |
|
116 | assert_template 'diff' | |
|
117 | # Line 11 removed | |
|
118 | assert_tag :tag => 'th', | |
|
119 | :content => '11', | |
|
120 | :sibling => { :tag => 'td', | |
|
121 | :attributes => { :class => /diff_out/ }, | |
|
122 | :content => /Display more information/ } | |
|
123 | end | |
|
122 | 124 | end |
|
123 | 125 | |
|
124 | 126 | def test_annotate |
General Comments 0
You need to be logged in to leave comments.
Login now