scm: subversion: code clean up test_browse_directory at functional test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7184 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8598f6a816
commit
93d5da4e53
|
@ -73,8 +73,11 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
|
|||
assert_response :success
|
||||
assert_template 'show'
|
||||
assert_not_nil assigns(:entries)
|
||||
assert_equal ['[folder_with_brackets]', 'folder', '.project', 'helloworld.c', 'textfile.txt'],
|
||||
assigns(:entries).collect(&:name)
|
||||
assert_equal [
|
||||
'[folder_with_brackets]', 'folder', '.project',
|
||||
'helloworld.c', 'textfile.txt'
|
||||
],
|
||||
assigns(:entries).collect(&:name)
|
||||
entry = assigns(:entries).detect {|e| e.name == 'helloworld.c'}
|
||||
assert_equal 'file', entry.kind
|
||||
assert_equal 'subversion_test/helloworld.c', entry.path
|
||||
|
|
Loading…
Reference in New Issue