@@ -73,8 +73,11 class RepositoriesSubversionControllerTest < ActionController::TestCase | |||||
73 | assert_response :success |
|
73 | assert_response :success | |
74 | assert_template 'show' |
|
74 | assert_template 'show' | |
75 | assert_not_nil assigns(:entries) |
|
75 | assert_not_nil assigns(:entries) | |
76 | assert_equal ['[folder_with_brackets]', 'folder', '.project', 'helloworld.c', 'textfile.txt'], |
|
76 | assert_equal [ | |
77 | assigns(:entries).collect(&:name) |
|
77 | '[folder_with_brackets]', 'folder', '.project', | |
|
78 | 'helloworld.c', 'textfile.txt' | |||
|
79 | ], | |||
|
80 | assigns(:entries).collect(&:name) | |||
78 | entry = assigns(:entries).detect {|e| e.name == 'helloworld.c'} |
|
81 | entry = assigns(:entries).detect {|e| e.name == 'helloworld.c'} | |
79 | assert_equal 'file', entry.kind |
|
82 | assert_equal 'file', entry.kind | |
80 | assert_equal 'subversion_test/helloworld.c', entry.path |
|
83 | assert_equal 'subversion_test/helloworld.c', entry.path |
General Comments 0
You need to be logged in to leave comments.
Login now