@@ -247,18 +247,15 class RepositoriesSubversionControllerTest < ActionController::TestCase | |||
|
247 | 247 | get :revision, :id => 1, :rev => 2 |
|
248 | 248 | assert_response :success |
|
249 | 249 | assert_template 'revision' |
|
250 | assert_tag :tag => 'ul', | |
|
251 | :child => { :tag => 'li', | |
|
250 | ||
|
251 | assert_select 'ul' do | |
|
252 | assert_select 'li' do | |
|
252 | 253 |
|
|
253 | :child => { :tag => 'a', | |
|
254 | :attributes => {:href => '/projects/ecookbook/repository/revisions/2/entry/test/some/path/in/the/repo'}, | |
|
255 | :content => 'repo', | |
|
254 | assert_select 'a[href=?]', '/projects/ecookbook/repository/revisions/2/entry/test/some/path/in/the/repo', :text => 'repo' | |
|
256 | 255 |
|
|
257 | :sibling => { :tag => 'a', | |
|
258 | :attributes => { :href => '/projects/ecookbook/repository/revisions/2/diff/test/some/path/in/the/repo' } | |
|
259 | } | |
|
260 | } | |
|
261 | } | |
|
256 | assert_select 'a[href=?]', '/projects/ecookbook/repository/revisions/2/diff/test/some/path/in/the/repo' | |
|
257 | end | |
|
258 | end | |
|
262 | 259 | end |
|
263 | 260 | |
|
264 | 261 | def test_invalid_revision |
@@ -298,18 +295,15 class RepositoriesSubversionControllerTest < ActionController::TestCase | |||
|
298 | 295 | get :revision, :id => 1, :rev => 2 |
|
299 | 296 | assert_response :success |
|
300 | 297 | assert_template 'revision' |
|
301 | assert_tag :tag => 'ul', | |
|
302 | :child => { :tag => 'li', | |
|
298 | ||
|
299 | assert_select 'ul' do | |
|
300 | assert_select 'li' do | |
|
303 | 301 |
|
|
304 | :child => { :tag => 'a', | |
|
305 | :attributes => {:href => '/projects/ecookbook/repository/revisions/2/entry/path/in/the/repo'}, | |
|
306 | :content => 'repo', | |
|
302 | assert_select 'a[href=?]', '/projects/ecookbook/repository/revisions/2/entry/path/in/the/repo', :text => 'repo' | |
|
307 | 303 |
|
|
308 | :sibling => { :tag => 'a', | |
|
309 | :attributes => { :href => '/projects/ecookbook/repository/revisions/2/diff/path/in/the/repo' } | |
|
310 | } | |
|
311 | } | |
|
312 | } | |
|
304 | assert_select 'a[href=?]', '/projects/ecookbook/repository/revisions/2/diff/path/in/the/repo' | |
|
305 | end | |
|
306 | end | |
|
313 | 307 | end |
|
314 | 308 | |
|
315 | 309 | def test_revision_diff |
General Comments 0
You need to be logged in to leave comments.
Login now