diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 23:12:08 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 23:12:08 +0000 |
commit | 67cbda91ed0c97478e07b08b7acbe71846b730fd (patch) | |
tree | f4ab1b08ae3dbab1d416b843a7594c82c817c8f7 /test/functional/repositories_bazaar_controller_test.rb | |
parent | 45e9b0007374fa4773e938905661ca7642bde08a (diff) | |
download | redmine-67cbda91ed0c97478e07b08b7acbe71846b730fd.tar.gz redmine-67cbda91ed0c97478e07b08b7acbe71846b730fd.zip |
scm: bazaar: add functional test of destroying valid repository (#6713, #4725).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6235 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_bazaar_controller_test.rb')
-rw-r--r-- | test/functional/repositories_bazaar_controller_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/repositories_bazaar_controller_test.rb b/test/functional/repositories_bazaar_controller_test.rb index 2b3cc79ab..8af06b3e0 100644 --- a/test/functional/repositories_bazaar_controller_test.rb +++ b/test/functional/repositories_bazaar_controller_test.rb @@ -146,6 +146,18 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase assert_tag :tag => 'th', :content => '2', :sibling => { :tag => 'td', :content => /Main purpose/ } end + + def test_destroy_valid_repository + @request.session[:user_id] = 1 # admin + @repository.fetch_changesets + @repository.reload + assert @repository.changesets.count > 0 + + get :destroy, :id => PRJ_ID + assert_response 302 + @project.reload + assert_nil @project.repository + end else puts "Bazaar test repository NOT FOUND. Skipping functional tests !!!" def test_fake; assert true end |