@@ -116,6 +116,15 class RepositoriesFilesystemControllerTest < ActionController::TestCase | |||||
116 | assert_equal 'text/plain', @response.content_type |
|
116 | assert_equal 'text/plain', @response.content_type | |
117 | end |
|
117 | end | |
118 | end |
|
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 | else |
|
128 | else | |
120 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" |
|
129 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" | |
121 | def test_fake; assert true end |
|
130 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now