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