@@ -132,10 +132,23 class RepositoriesBazaarControllerTest < ActionController::TestCase | |||||
132 | get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt'] |
|
132 | get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt'] | |
133 | assert_response :success |
|
133 | assert_response :success | |
134 | assert_template 'annotate' |
|
134 | assert_template 'annotate' | |
135 | # Line 2, revision 3 |
|
135 | assert_tag :tag => 'th', :content => '2', | |
136 | assert_tag :tag => 'th', :content => /2/, |
|
136 | :sibling => { | |
137 | :sibling => { :tag => 'td', :child => { :tag => 'a', :content => /3/ } }, |
|
137 | :tag => 'td', | |
138 | :sibling => { :tag => 'td', :content => /jsmith/ }, |
|
138 | :child => { | |
|
139 | :tag => 'a', | |||
|
140 | :content => /3/ | |||
|
141 | } | |||
|
142 | }, | |||
|
143 | :sibling => { :tag => 'td', :content => /jsmith/ } | |||
|
144 | assert_tag :tag => 'th', :content => '2', | |||
|
145 | :sibling => { | |||
|
146 | :tag => 'td', | |||
|
147 | :child => { | |||
|
148 | :tag => 'a', | |||
|
149 | :content => /3/ | |||
|
150 | } | |||
|
151 | }, | |||
139 | :sibling => { :tag => 'td', :content => /Main purpose/ } |
|
152 | :sibling => { :tag => 'td', :content => /Main purpose/ } | |
140 | end |
|
153 | end | |
141 | else |
|
154 | else |
General Comments 0
You need to be logged in to leave comments.
Login now