@@ -146,6 +146,18 class RepositoriesBazaarControllerTest < ActionController::TestCase | |||||
146 | assert_tag :tag => 'th', :content => '2', |
|
146 | assert_tag :tag => 'th', :content => '2', | |
147 | :sibling => { :tag => 'td', :content => /Main purpose/ } |
|
147 | :sibling => { :tag => 'td', :content => /Main purpose/ } | |
148 | end |
|
148 | end | |
|
149 | ||||
|
150 | def test_destroy_valid_repository | |||
|
151 | @request.session[:user_id] = 1 # admin | |||
|
152 | @repository.fetch_changesets | |||
|
153 | @repository.reload | |||
|
154 | assert @repository.changesets.count > 0 | |||
|
155 | ||||
|
156 | get :destroy, :id => PRJ_ID | |||
|
157 | assert_response 302 | |||
|
158 | @project.reload | |||
|
159 | assert_nil @project.repository | |||
|
160 | end | |||
149 | else |
|
161 | else | |
150 | puts "Bazaar test repository NOT FOUND. Skipping functional tests !!!" |
|
162 | puts "Bazaar test repository NOT FOUND. Skipping functional tests !!!" | |
151 | def test_fake; assert true end |
|
163 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now