summaryrefslogtreecommitdiffstats
path: root/test/unit/changeset_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Use #b shortcut instead of #force_encoding (#31059).Go MAEDA2019-03-201-6/+6
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17992 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Decode hexadecimal-encoded literals in order to be frozen string literals ↵Go MAEDA2019-03-191-14/+9
| | | | | | | | | friendly (#31004). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove unnecessary encoding magic comment (#31034).Go MAEDA2019-03-161-2/+0
| | | | | | | | | The default script encoding is UTF-8 in Ruby 2.0 or later. Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17976 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
* Set User.current to nil before unit tests.Jean-Philippe Lang2018-12-161-0/+4
| | | | 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-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use assert_nil instead of assert_equal.Jean-Philippe Lang2016-12-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16060 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
* Adds a test for #21100.Jean-Philippe Lang2015-11-081-1/+19
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14855 e93f8b46-1217-0410-a6f0-8f06a7374b81
* find_referenced_issue_by_id fails with RangeError for large numbers (#21071).Jean-Philippe Lang2015-10-291-0/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14758 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixtures to test/unit/changeset_test.rbToshi MARUYAMA2015-04-301-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14230 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Keywords in commit messages: journal entries are created even if nothing was ↵Jean-Philippe Lang2015-04-121-0/+24
| | | | | | changed (#19538). git-svn-id: http://svn.redmine.org/redmine/trunk@14164 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixturesToshi MARUYAMA2015-01-211-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13933 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
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-31/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't link multiple changesets from the same commit multiple times (#17931).Jean-Philippe Lang2014-10-051-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13427 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixtures to ChangesetTestToshi MARUYAMA2014-07-161-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13332 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changeset comments set to longtext for handling comments > 64KB with Mysql ↵Jean-Philippe Lang2014-02-281-0/+11
| | | | | | (#16143). git-svn-id: http://svn.redmine.org/redmine/trunk@12944 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
* Fixed Changeset#text_tag for changeset with hash and repository identifier ↵Jean-Philippe Lang2014-01-121-0/+10
| | | | | | (#13544). git-svn-id: http://svn.redmine.org/redmine/trunk@12660 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code format cleanup ChangesetTestToshi MARUYAMA2014-01-091-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12543 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded Relation#all from ↵Toshi MARUYAMA2014-01-091-1/+1
| | | | | | ChangesetTest#test_ref_keywords_closing_with_timelog git-svn-id: http://svn.redmine.org/redmine/trunk@12539 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated Relation#first with finder options at ChangesetTestToshi MARUYAMA2014-01-091-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12538 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated Relation#first with finder options at ChangesetTestToshi MARUYAMA2014-01-081-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12514 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove extra empty lines from test/unit/changeset_test.rbToshi MARUYAMA2013-12-061-3/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12364 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to define commit keywords per tracker (#7590).Jean-Philippe Lang2013-10-131-20/+41
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12208 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't update issues nor log time when importing old changesets (#4823).Jean-Philippe Lang2013-10-051-0/+22
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12199 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support for multiple issue update keywords/rules in commit messages (#4911).Jean-Philippe Lang2013-10-051-8/+26
| | | | 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
* remove empty setup method from test/unit/changeset_test.rbToshi MARUYAMA2012-09-261-3/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10480 e93f8b46-1217-0410-a6f0-8f06a7374b81
* set default_language en at test_commit_closing_a_subproject_issue of unit ↵Toshi MARUYAMA2012-09-261-1/+2
| | | | | | changeset test git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10477 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
* Adds the repository identifier to Changeset#text_tag (#779).Jean-Philippe Lang2012-03-241-0/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9255 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed magic link in the note added when closing an issue by a commit from a ↵Jean-Philippe Lang2012-02-201-0/+38
| | | | | | subproject (#10284). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a setting that allows to reference/fix issues of all projects (#3087).Jean-Philippe Lang2012-02-021-0/+30
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8750 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: use save instead of scan_comment_for_issue_ids at ↵Toshi MARUYAMA2011-08-291-2/+1
| | | | | | test_commit_referencing_a_parent_project_issue of unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6739 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add dummy revision at test_commit_referencing_a_parent_project_issue of ↵Toshi MARUYAMA2011-08-291-2/+2
| | | | | | unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6738 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: use save instead of scan_comment_for_issue_ids at ↵Toshi MARUYAMA2011-08-291-2/+1
| | | | | | test_commit_referencing_a_subproject_issue of unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6737 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add dummy revision at test_commit_referencing_a_subproject_issue of ↵Toshi MARUYAMA2011-08-291-1/+2
| | | | | | unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: use save instead of scan_comment_for_issue_ids at ↵Toshi MARUYAMA2011-08-291-2/+1
| | | | | | test_ref_keywords_allow_brackets_around_multiple_issue_numbers of unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6735 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add dummy revision at ↵Toshi MARUYAMA2011-08-291-2/+2
| | | | | | test_ref_keywords_allow_brackets_around_multiple_issue_numbers of unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6734 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: use save instead of scan_comment_for_issue_ids at ↵Toshi MARUYAMA2011-08-291-2/+1
| | | | | | test_ref_keywords_allow_brackets_around_a_issue_number of unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6733 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add dummy revision at ↵Toshi MARUYAMA2011-08-291-2/+2
| | | | | | test_ref_keywords_allow_brackets_around_a_issue_number of unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6732 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: use save instead of scan_comment_for_issue_ids at ↵Toshi MARUYAMA2011-08-291-2/+1
| | | | | | test_ref_keywords_any_line_start of unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6731 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add dummy revision at test_ref_keywords_any_line_start of unit ↵Toshi MARUYAMA2011-08-291-2/+2
| | | | | | changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6730 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: use save instead of scan_comment_for_issue_ids at ↵Toshi MARUYAMA2011-08-291-2/+1
| | | | | | test_ref_keywords_any_only of unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6729 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add dummy revision at test_ref_keywords_any_only of unit changeset test.Toshi MARUYAMA2011-08-291-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6728 e93f8b46-1217-0410-a6f0-8f06a7374b81