Commit Graph

69 Commits

Author SHA1 Message Date
Jean-Philippe Lang 582574bace Adds a test for revision diff as raw format.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8042 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 13:18:00 +00:00
Jean-Philippe Lang 666830cca0 Test class cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8037 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 08:53:02 +00:00
Jean-Philippe Lang b6b77c438a Adds functional tests for repository creation/update.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8036 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 08:47:40 +00:00
Toshi MARUYAMA e42b152011 scm: subversion: remove fetch_changesets from test_revision at functional test
This test uses fixtures. So, there is no need to fetch changesets.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7216 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 14:57:19 +00:00
Toshi MARUYAMA 887c27bb91 Rails3: scm: subversion: fix error of test_entry_download at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7204 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:09:06 +00:00
Toshi MARUYAMA 640e7b2c82 Rails3: scm: subversion: fix error of test_entry_not_found at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7203 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:08:42 +00:00
Toshi MARUYAMA 57b4c52d85 Rails3: scm: subversion: fix error of test_entry_at_given_revision at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7202 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:08:19 +00:00
Toshi MARUYAMA 50c0856b9b Rails3: scm: subversion: fix error of test_entry_should_send_if_too_big at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7201 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:07:55 +00:00
Toshi MARUYAMA ef997024a3 Rails3: scm: subversion: fix error of test_entry at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7200 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:07:30 +00:00
Toshi MARUYAMA b90cc49ecb Rails3: scm: subversion: fix error of test_directory_changes at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7199 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:07:05 +00:00
Toshi MARUYAMA 62a1e1dc50 Rails3: scm: subversion: fix error of test_file_changes at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:06:38 +00:00
Toshi MARUYAMA 84fb59bca3 Rails3: scm: subversion: fix error of test_browse_at_given_revision at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:06:13 +00:00
Toshi MARUYAMA 65ec0c7a5e Rails3: scm: subversion: fix error of test_browse_directory at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7196 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:05:45 +00:00
Toshi MARUYAMA 89476adc7f Rails3: scm: subversion: fix error of test_browse_root at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7195 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 13:05:14 +00:00
Toshi MARUYAMA 1788dc424a Rails3: scm: subversion: fix error of test_destroy_invalid_repository at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7194 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:56:53 +00:00
Toshi MARUYAMA f2eb1c3e3f Rails3: scm: subversion: fix error of test_destroy_valid_repository at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7193 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:56:28 +00:00
Toshi MARUYAMA 818395a995 Rails3: scm: subversion: fix error of test_annotate_at_given_revision at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7192 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:55:48 +00:00
Toshi MARUYAMA 5adfea9708 Rails3: scm: subversion: fix error of test_annotate at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7191 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:55:07 +00:00
Toshi MARUYAMA 6cddeac5e6 Rails3: scm: subversion: fix error of test_directory_diff at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7190 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:54:39 +00:00
Toshi MARUYAMA 2c5658cda8 Rails3: scm: subversion: fix error of test_revision_diff at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7189 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:54:05 +00:00
Toshi MARUYAMA 345b0238fc Rails3: scm: subversion: fix error of test_empty_revision at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7188 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:53:34 +00:00
Toshi MARUYAMA 9c0701ce12 Rails3: scm: subversion: fix error of test_invalid_revision at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7187 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:53:00 +00:00
Toshi MARUYAMA 404b7d9a7d Rails3: scm: subversion: fix error of test_directory_entry at functional test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7186 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:52:31 +00:00
Toshi MARUYAMA 01f4caad45 scm: subversion: code clean up test_entry_should_send_if_too_big at functional test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7185 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:07:42 +00:00
Toshi MARUYAMA 93d5da4e53 scm: subversion: code clean up test_browse_directory at functional test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7184 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 12:07:15 +00:00
Toshi MARUYAMA 5d187b4fa5 Rails3: scm: subversion: fix error of test_show at unit model test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7173 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 11:15:18 +00:00
Toshi MARUYAMA 3afbc61cdd scm: subversion: define NUM_REV as the number of test repository revisions at functional test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7172 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 11:14:34 +00:00
Toshi MARUYAMA 173b5ce965 scm: subversion: code clean up functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 21:47:51 +00:00
Toshi MARUYAMA 7c505aaff3 scm: subversion: add functional test of destroying invalid repository (#8458, #6713, #4725).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6225 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 15:48:21 +00:00
Toshi MARUYAMA 6ee6d709f2 scm: subversion: add functional test of destroying valid repository (#8458, #6713, #4725).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6224 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 15:47:35 +00:00
Toshi MARUYAMA c361ef5a5f scm: subversion: run both of "inline" and "side by side" diff in functional test_directory_diff test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5982 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-01 06:12:34 +00:00
Toshi MARUYAMA cb555d9885 scm: subversion: run both of "inline" and "side by side" diff in functional test_revision_diff test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5981 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-01 06:12:13 +00:00
Toshi MARUYAMA 9cb76de334 scm: subversion: remove trailing white-spaces from functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5701 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-08 05:08:05 +00:00
Toshi MARUYAMA 363d9de8bb scm: subversion: code clean up functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5561 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-28 11:24:02 +00:00
Jean-Philippe Lang f279b48288 Fixes subversion tests not running on win32.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5175 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-20 18:25:38 +00:00
Toshi MARUYAMA 3e463c4e69 scm: subversion: change some functional tests project id from 1 to 3.
TODO: remaining tests read fixture. All tests need to read test repository.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4896 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-21 03:59:30 +00:00
Toshi MARUYAMA 66c979d63c scm: fix diff revision param validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4860 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-17 14:17:04 +00:00
Toshi MARUYAMA ccdea234ad scm: functional test of using format_revision() for annotate (#3724).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4734 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-21 13:22:28 +00:00
Jean-Philippe Lang 7d0b1b3830 Respond with 404 instead of 500 when revision/entry is not found in the repository (#7307).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4710 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-14 20:22:36 +00:00
Toshi MARUYAMA 98b3a50657 scm: fix error on revision page for empty revision (#7307).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4703 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-13 12:04:30 +00:00
Toshi MARUYAMA e4f72a8e3a scm: add compatible functional test fof changing diff revisions label at SCM adapter level.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4665 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-09 09:53:50 +00:00
Jean-Philippe Lang 84dd413f22 Restore rev param validation that was removed in r2840.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4542 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-18 18:37:49 +00:00
Jean-Baptiste Barth 17f86d964f Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 23:24:34 +00:00
Eric Davis 0e951c0716 Fix the tests that were broken by r4286:
"Refactor: merged error rendering methods."

http://ci.finn.de/builds/1-8-7_redmine-trunk_mysql/4286

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4289 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-25 15:42:41 +00:00
Eric Davis c5863c0ad0 Support listing directories in svn which include square brackets. #5548
Contributed by Gregor Schmidt

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3800 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-06-20 16:08:26 +00:00
Jean-Philippe Lang 1be15816dd Adds test helpers for test repositories.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3720 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-05-01 08:32:21 +00:00
Jean-Philippe Lang 30ad78e57d Fixed: RepositoriesController#revision may show wrong revision (#3779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2898 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-20 15:20:22 +00:00
Eric Davis 7b0cb6aba8 Upgraded to Rails 2.3.4 (#3597)
* Ran the Rails upgrade
* Upgraded to Rails Engines 2.3.2
* Added a plugin to let Engines override application views.
* Converted tests to use the new classes:
** ActionController::TestCase for functional
** ActiveSupport::TestCase for units
* Converted ActiveRecord::Error message to a string.
* ActiveRecord grouping returns an ordered hash which doesn't have #sort!
* Updated the I18n storage_units format.
* Added some default initializers from a fresh rails app
* Changed the order of check_box_tags and hidden_field_tags.  The hidden tag
  needs to appear first in Rails 2.3, otherwise it will override any value in
  the check_box_tag.
* Removed the custom handler for when the cookie store is tampered with.
  Rails 2.3 removed the TamperedWithCookie exception and instead Rails will not
  load the data from it when it's been tampered with (e.g. no user login).
* Fixed mail layouts, 2.3 has problems with implicit multipart emails that
  use layouts.  Also removed some custom Redmine mailer code.
* Fixed a bug that occurred in tests where the "required" span tag would be
  added to the :field_status translation.  This resulted in an email string of:

    <li>Status<span class="required"> *</span><span class="required"> *</span>

  Instead of:

    <li>Status: New</li>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2887 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-13 17:14:35 +00:00
Jean-Philippe Lang 5b97570693 SCM:
* add latest changesets for the current directory when browsing the repository and a link to the full log
* ability to diff a directory (#3575)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2849 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-01 12:13:17 +00:00
Jean-Philippe Lang e10577e9ed SCM:
* Fixes file log for non-Git repositories (Repository#latest_changesets ignores path argument)
* No longer used Repository#changesets_for_path method removed

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2844 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-08-17 16:32:24 +00:00