@@ -116,6 +116,15 class RepositoriesFilesystemControllerTest < ActionController::TestCase | |||
|
116 | 116 | assert_equal 'text/plain', @response.content_type |
|
117 | 117 | end |
|
118 | 118 | end |
|
119 | ||
|
120 | def test_destroy_valid_repository | |
|
121 | @request.session[:user_id] = 1 # admin | |
|
122 | ||
|
123 | get :destroy, :id => PRJ_ID | |
|
124 | assert_response 302 | |
|
125 | @project.reload | |
|
126 | assert_nil @project.repository | |
|
127 | end | |
|
119 | 128 | else |
|
120 | 129 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" |
|
121 | 130 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now