summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Rails3: test: add .to_s for mail's bodies check at unit/repository_test.rbToshi MARUYAMA2012-03-011-1/+1
| | | | | | | On Rails3, mail's bodies must be checked calling 'encoded'. 'to_s' is alias of 'encoded' of Mail::Message of Rails3. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9035 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not do assertions on mail class.Jean-Philippe Lang2012-02-251-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8991 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout cleanup test/unit/repository_test.rbToshi MARUYAMA2012-02-241-2/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8958 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add test to override human_attribute_name of log_encodingToshi MARUYAMA2012-02-241-0/+26
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8957 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a test for changeset/issue relations deletion.Jean-Philippe Lang2012-02-111-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8848 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that changesets parents associations are not deleted when deleting a ↵Jean-Philippe Lang2012-02-111-0/+9
| | | | | | repository. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8847 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds support for multiple repositories per project (#779).Jean-Philippe Lang2012-01-151-0/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8650 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s ↵Toshi MARUYAMA2011-12-091-1/+1
| | | | | | | | | at test/unit/repository_test.rb On Rails2, Errors#[] returns single error if one error raises. But, on Rails3, Errors#[] always returns the array. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8135 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add test to strip git repository path at unit repository test.Toshi MARUYAMA2011-08-301-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6827 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add test to strip subversion repository path at unit repository test.Toshi MARUYAMA2011-08-301-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6826 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: rename test_for_urls_strip to test_for_urls_strip_cvs at unit ↵Toshi MARUYAMA2011-08-301-1/+1
| | | | | | repository test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6825 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add a test of a repository model method "merge_extra_info()" in unit ↵Toshi MARUYAMA2011-05-121-0/+33
| | | | | | test (#7146, #7047). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5767 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: code clean up unit repository test.Toshi MARUYAMA2011-05-081-11/+24
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5709 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: code clean up unit repository test.Toshi MARUYAMA2011-05-061-13/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5658 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: space cleanup in unit repository test.Toshi MARUYAMA2011-05-021-8/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5615 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add filesystem available test at unit repository test (#4273).Toshi MARUYAMA2011-04-081-0/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5364 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: code clean up test/unit/repository_test.rb.Toshi MARUYAMA2011-03-221-12/+36
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5195 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add feature of per project repository log encoding setting (#1735).Toshi MARUYAMA2011-03-011-4/+7
| | | | | | Subversion, Mercurial and Git supports UTF-8 log. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4982 e93f8b46-1217-0410-a6f0-8f06a7374b81
* When destroying a user, remove all references to that user (#7296).Jean-Philippe Lang2011-01-161-6/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4726 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds missing fixtures when running tests from scratch.Jean-Philippe Lang2010-12-201-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4548 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050Jean-Baptiste Barth2010-12-121-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4509 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added three new notifiable events based on issue attributesEric Davis2010-09-281-0/+1
| | | | | | | | * issue_note_added * issue_status_updated * issue_priority_updated git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4221 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds missing native eol properties.Jean-Philippe Lang2009-09-201-4/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2895 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgraded to Rails 2.3.4 (#3597)Eric Davis2009-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Slight tests fixes.Jean-Philippe Lang2008-11-251-0/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2055 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Maps repository users to Redmine users (#1383).Jean-Philippe Lang2008-11-101-0/+22
| | | | | | Users with same username or email are automatically mapped. Mapping can be manually adjusted in repository settings. Multiple usernames can be mapped to the same Redmine user. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2006 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Clear changesets and changes with raw sql when deleting a repository (#1627).Jean-Philippe Lang2008-07-131-0/+10
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1666 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Filesystem adapter (patch #1393 by Paul R).Jean-Philippe Lang2008-06-081-0/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1508 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to disable unused SCM adapters in application settings.Jean-Philippe Lang2008-06-081-0/+8
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1507 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Strip repository urls (closes #852).Jean-Philippe Lang2008-03-141-0/+9
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1248 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Create a journal and send an email when an issue is closed by commit (#609).Jean-Philippe Lang2008-02-061-4/+29
| | | | | | The redmine user is found using the committer username or email. Otherwise, the journal is created with anonymous user. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1126 e93f8b46-1217-0410-a6f0-8f06a7374b81
* * Added links to previous and next revisions on revision view (patch by ↵Jean-Philippe Lang2007-12-011-2/+2
| | | | | | | | | Cyril Mougel slightly edited) * Fixed TimelogController#report december error * Fixed ProjectsControllerTest#test_activity 1st and 2nd day of the month failure git-svn-id: http://redmine.rubyforge.org/svn/trunk@938 e93f8b46-1217-0410-a6f0-8f06a7374b81
* * Referencing issues in commit messages: enter * in 'Referencing keywords' ↵Jean-Philippe Lang2007-11-201-1/+1
| | | | | | | | to link any issue id without using keywords. * Updated Polish translation (Mariusz Olejnik). git-svn-id: http://redmine.rubyforge.org/svn/trunk@918 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Commit message parser:Jean-Philippe Lang2007-10-221-0/+2
| | | | | | | * Fixed: Error when parsing a commit message with duplicate issue identifiers * Strip referencing and fixing keywords git-svn-id: http://redmine.rubyforge.org/svn/trunk@861 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added the ability to set the "done ratio" of issues fixed by commit ↵Jean-Philippe Lang2007-10-101-3/+6
| | | | | | (original path by Nikolay Solakov, slightly edited). git-svn-id: http://redmine.rubyforge.org/svn/trunk@821 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changeset comments are now stripped before being stored in the database ↵Jean-Philippe Lang2007-08-251-0/+15
| | | | | | (patch by Nicholas Wieland). git-svn-id: http://redmine.rubyforge.org/svn/trunk@657 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added basic support for CVS and Mercurial SCMs.Jean-Philippe Lang2007-06-121-15/+1
| | | | | | | | | Browsing, changesets fetching and diff viewing are implemented. Only tested with local repositories. Thanks to Ralph Vater for CVS specific code. git-svn-id: http://redmine.rubyforge.org/svn/trunk@559 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: performance issue on RepositoriesController#revisions when a ↵Jean-Philippe Lang2007-05-151-5/+16
| | | | | | | | changeset has a great number of changes (eg. 100,000). Also added pagination for changes on changeset details view. git-svn-id: http://redmine.rubyforge.org/svn/trunk@535 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Commit messages are now scanned for referenced or fixed issue IDs.Jean-Philippe Lang2007-04-241-0/+59
Keywords and the status to apply to fixed issues can be defined in Admin -> Settings. Default keywords: - for referencing issues: refs, references, IssueID - for fixing issues: fixes,closes There's no default status defined for fixed issue. You'll have to specify it if you want to enable auto closure of issues. Example of a working commit message: "This commit references #1, #2 and fixes #3" git-svn-id: http://redmine.rubyforge.org/svn/trunk@473 e93f8b46-1217-0410-a6f0-8f06a7374b81