summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentFirstArgument in test/unit/repository_test.rbToshi MARUYAMA2019-11-241-69/+105
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19224 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentFirstHashElement in ↵Toshi MARUYAMA2019-11-241-8/+12
| | | | | | test/unit/repository_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19223 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/AlignArguments in test/unit/repository_test.rbToshi MARUYAMA2019-10-231-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18848 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in test/**/*.rb (#26561).Go MAEDA2019-03-211-1/+1
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17996 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Decode hexadecimal-encoded literals in order to be frozen string literals ↵Go MAEDA2019-03-191-3/+2
| | | | | | | | | friendly (#31004). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add missing fixtures to several tests (#30276).Go MAEDA2019-01-091-1/+3
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17780 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set User.current to nil before unit tests.Jean-Philippe Lang2018-12-161-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17761 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send individual emails for each mail recipient (#26791).Jean-Philippe Lang2018-10-061-8/+9
| | | | | | | | | | | | | | | | | | | | | | | We are creating multipe mails per class notification event, one per recipient, wrapped in a Mailer::MultiMessage object to send them all at once. We keep the existing interface of all class methods intended to be used by external code the same as they were before, with one exception: We provide additional recipient addresses in options[:recipients] for Mailer.security_notification. Since the first-class recipients have to be users to render individual mails for them, additional recipient addresses have to be provided with some other channel. By providing additional recipients in options[:recipients], we can solve the use-case for address change notifications for users, which probably is the only real use-case for having to use a plain email address instead of a User as a notification recipient. Patch by Holger Just and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17583 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Drop Darcs support (#26391).Jean-Philippe Lang2017-07-251-1/+1
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16886 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add some tests to RepositoryTest#test_for_changeset_comments_stripToshi MARUYAMA2017-07-101-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16811 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code style cleanup at RepositoryTest#test_for_changeset_comments_stripToshi MARUYAMA2017-07-101-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16810 e93f8b46-1217-0410-a6f0-8f06a7374b81
* replace white spaces of here-text at ↵Toshi MARUYAMA2017-07-101-8/+6
| | | | | | RepositoryTest#test_for_changeset_comments_strip git-svn-id: http://svn.redmine.org/redmine/trunk@16809 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Be more conservative when fetching constants in Repository.factory (#23758).Jean-Philippe Lang2016-09-041-0/+14
| | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@15816 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that 2 repositories can be created with blank/nil identifier (#19400).Jean-Philippe Lang2015-04-111-0/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14156 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't allow 2 repositories with blank identifier (#19400).Jean-Philippe Lang2015-03-201-0/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14142 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixturesToshi MARUYAMA2015-01-181-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13911 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaced "can't" with "cannot" in error messages.Jean-Philippe Lang2014-12-211-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13781 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Misc tests.Jean-Philippe Lang2014-12-071-0/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13731 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2014-10-251-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13508 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-4/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Honnor committers/users mapping in repository statistics (#13487).Jean-Baptiste Barth2014-08-261-2/+48
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13353 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix text failing on some rubies/sql drivers because of improper length in ↵Jean-Baptiste Barth2014-08-261-2/+2
| | | | | | Change#action (#13487). git-svn-id: http://svn.redmine.org/redmine/trunk@13352 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move some RepositoriesController logic to Repository#stats_by_author (#13487).Jean-Baptiste Barth2014-08-261-0/+19
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13351 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure that Repository#extra_info returns a Hash or nil (#16032).Jean-Philippe Lang2014-02-061-0/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12848 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from RepositoryTestToshi MARUYAMA2014-01-091-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12561 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code format cleanup RepositoryTestToshi MARUYAMA2014-01-091-2/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12560 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated find_all_by_* at RepositoryTestToshi MARUYAMA2014-01-091-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12558 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated Relation#update_all at RepositoryTestToshi MARUYAMA2014-01-091-4/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12557 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add unit test to have one default repositoryToshi MARUYAMA2014-01-071-0/+25
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12492 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4 compatibility of RepositoryTestToshi MARUYAMA2013-12-271-4/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12470 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to define commit keywords per tracker (#7590).Jean-Philippe Lang2013-10-131-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12208 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support for multiple issue update keywords/rules in commit messages (#4911).Jean-Philippe Lang2013-10-051-4/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleanup of finders with :conditions option.Jean-Philippe Lang2013-06-121-4/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:first) calls.Jean-Philippe Lang2012-12-031-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Repository Identifier should be frozen (#11109).Jean-Philippe Lang2012-07-261-0/+32
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10081 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Tests should not change settings.Jean-Philippe Lang2012-07-081-2/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9949 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make repository identifier accept underscores (#11192).Jean-Philippe Lang2012-06-191-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9875 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Renamed #changes association to #filechanges (clash with AR::Base.changes ↵Jean-Philippe Lang2012-06-031-2/+4
| | | | | | that triggers errors with Rails 3.2.5). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9759 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* test: switch to Rails3 Active Record syntax at test_destroy of ↵Toshi MARUYAMA2012-05-041-3/+2
| | | | | | unit/repository_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9623 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed undefined method `<=>' for nil:NilClass when sorting repositories with ↵Jean-Philippe Lang2012-05-041-0/+9
| | | | | | nil identifiers (#10827). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changed assertions to make them work with Rails2/3 ruby1.8/1.9 different ↵Jean-Philippe Lang2012-03-051-2/+2
| | | | | | behaviours. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9108 e93f8b46-1217-0410-a6f0-8f06a7374b81