Mercurial > hg > soundsoftware-site
comparison test/functional/.svn/text-base/repositories_subversion_controller_test.rb.svn-base @ 128:07fa8a8b56a8
Update to Redmine trunk rev 4732
| author | Chris Cannam |
|---|---|
| date | Wed, 19 Jan 2011 15:04:22 +0000 |
| parents | 8661b858af72 |
| children | 0579821a129a |
comparison
equal
deleted
inserted
replaced
| 119:8661b858af72 | 128:07fa8a8b56a8 |
|---|---|
| 166 } | 166 } |
| 167 end | 167 end |
| 168 | 168 |
| 169 def test_invalid_revision | 169 def test_invalid_revision |
| 170 get :revision, :id => 1, :rev => 'something_weird' | 170 get :revision, :id => 1, :rev => 'something_weird' |
| 171 assert_response 500 | 171 assert_response 404 |
| 172 assert_error_tag :content => /was not found/ | 172 assert_error_tag :content => /was not found/ |
| 173 end | 173 end |
| 174 | 174 |
| 175 def test_empty_revision | 175 def test_empty_revision |
| 176 ['', ' ', nil].each do |r| | 176 ['', ' ', nil].each do |r| |
| 177 get :revision, :id => 1, :rev => r | 177 get :revision, :id => 1, :rev => r |
| 178 assert_response 500 | 178 assert_response 404 |
| 179 assert_error_tag :content => /was not found/ | 179 assert_error_tag :content => /was not found/ |
| 180 end | 180 end |
| 181 end | 181 end |
| 182 | 182 |
| 183 def test_revision_with_repository_pointing_to_a_subdirectory | 183 def test_revision_with_repository_pointing_to_a_subdirectory |
