summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine
Commit message (Collapse)AuthorAgeFilesLines
* Merged r17889 from trunk to 4.0-stable (#30811).Go MAEDA2019-05-051-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@18129 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r18122 from trunk to 4.0-stable (#29259).Go MAEDA2019-05-041-0/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@18123 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r18118 from trunk to 4.0-stable (#31285).Go MAEDA2019-05-031-0/+53
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@18119 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r17966 to 4.0-stable (#31030).Jean-Philippe Lang2019-03-151-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17967 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r17764 from trunk to 4.0-stable (#30171).Go MAEDA2018-12-171-2/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17766 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Tests failure with SQLite3.Jean-Philippe Lang2018-12-011-1/+2
| | | | | | ActiveRecord::RecordNotUnique: SQLite3::ConstraintException: UNIQUE constraint failed: custom_fields_trackers.custom_field_id, custom_fields_trackers.tracker_id: INSERT INTO "custom_fields_trackers" ("custom_field_id", "tracker_id") VALUES (?, ?) git-svn-id: http://svn.redmine.org/redmine/trunk@17675 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Tests for #29674.Jean-Philippe Lang2018-11-283-0/+39
| | | | | | Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@17646 e93f8b46-1217-0410-a6f0-8f06a7374b81
* REST API with JSON content missing false values (#20788).Jean-Philippe Lang2018-11-281-0/+9
| | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17643 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Tags start with 'pre' are handled as 'pre' tag in Textile (#8395).Go MAEDA2018-11-261-0/+16
| | | | | | | Patch by Takenori TAKAKI and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes request and response accessors from Structure class (#28564).Go MAEDA2018-11-031-0/+11
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@17617 e93f8b46-1217-0410-a6f0-8f06a7374b81
* \f or \v character in Textile markup may cause RegexpError exception (#29756).Go MAEDA2018-10-281-0/+6
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17603 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix broken tests due to r17593 (#29739).Go MAEDA2018-10-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17594 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Syntax highlighter: replace CodeRay with Rouge (#24681).Jean-Philippe Lang2018-09-293-40/+3
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17532 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support migration context for plugins (#28934).Jean-Philippe Lang2018-09-231-0/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17514 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix typo in test name: s/highligth/highlight/ (#29440).Go MAEDA2018-08-261-1/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17477 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test that Redmine::MimeType.css_class_of, main_mimetype_of and is_type? are ↵Go MAEDA2018-08-151-0/+3
| | | | | | case-insensitive (#29359). git-svn-id: http://svn.redmine.org/redmine/trunk@17472 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test that Redmine::MimeType.of is case-insensitive (#29359).Go MAEDA2018-08-151-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17471 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Textile phrase modifiers break wiki macros (#29247).Go MAEDA2018-07-211-0/+5
| | | | | | | Patch by Stephan Wenzel. git-svn-id: http://svn.redmine.org/redmine/trunk@17450 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Image filename for HDPI monitors (image@2x.jpg) are misrecognized as email ↵Jean-Philippe Lang2018-06-171-0/+12
| | | | | | | | address (#27968). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17394 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable and add underline button to the toolbar for Markdown formatting (#28169).Jean-Philippe Lang2018-06-161-0/+4
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17385 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow switching the encoding to UTF-8 when exporting to CSV (#26279).Go MAEDA2018-05-071-1/+16
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17328 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Syntax highlighter does not work if language name is single-quoted ↵Go MAEDA2018-05-021-0/+3
| | | | | | | | | (#28469). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17322 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show renames in diff preview (#28295).Go MAEDA2018-04-271-0/+50
| | | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@17313 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Gantt bars with start date and end date on the same day don't become red by ↵Go MAEDA2018-04-091-0/+14
| | | | | | | | | overdue (#13521). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17294 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Markdown pre-block could derive incorrect wiki sections (#25299).Jean-Philippe Lang2018-04-071-0/+55
| | | | | | Patch by Kiichi Ozaki. git-svn-id: http://svn.redmine.org/redmine/trunk@17266 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move textile footnotes test to TextileFormatterTest (#28207).Go MAEDA2018-03-021-0/+15
| | | | | | | Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@17222 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add footnotes test for markdown formatter (#28207).Go MAEDA2018-03-021-0/+24
| | | | | | | Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@17221 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add minimal fixture for issues_pdf_test (#12510).Go MAEDA2018-02-241-0/+3
| | | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@17212 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable lax_spacing for markdown formatting (#28119).Go MAEDA2018-02-161-0/+9
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add tests for "height" and "max-height" (#26552).Go MAEDA2018-01-131-1/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17175 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow "max-height", "max-width", "min-height" and "min-width" CSS properties ↵Go MAEDA2018-01-111-0/+2
| | | | | | | | | in Textile (#26552). Patch by Michael Gerz and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17173 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Unable to download file if custom field is not defined as visible to any ↵Jean-Philippe Lang2018-01-081-0/+59
| | | | | | users (#26705). git-svn-id: http://svn.redmine.org/redmine/trunk@17158 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Links for custom field value don't have "external" class (#27024).Go MAEDA2018-01-014-14/+14
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17138 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add copyright header to test/unit/lib/redmine/helpers/url_test.rb (#12510)Toshi MARUYAMA2017-12-071-0/+17
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17077 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code clean up IssuesPdfHelperTest (#12510)Toshi MARUYAMA2017-12-071-13/+10
| | | | | | | | * remove extra empty lines * remove trailing white space * replace tab to two spaces git-svn-id: http://svn.redmine.org/redmine/trunk@17065 e93f8b46-1217-0410-a6f0-8f06a7374b81
* mercurial: work around faulty parsing of early command options (#27516)Toshi MARUYAMA2017-12-071-6/+6
| | | | | | | | | Use -sVALUE and --long=VALUE instead of "-s VALUE" and "--long VALUE" respectively. Contributed by Yuya Nishihara. git-svn-id: http://svn.redmine.org/redmine/trunk@17062 e93f8b46-1217-0410-a6f0-8f06a7374b81
* mercurial: reject malicious command argument (#27516)Toshi MARUYAMA2017-12-071-0/+19
| | | | | | | | | | | | | | | | | | | | | | We've got a security report from the Phabricator team, which basically says --config and --debugger arguments can be injected anywhere to lead to an arbitrary command execution. https://secure.phabricator.com/rPa7921a4448093d00defa8bd18f35b8c8f8bf3314 This is a fundamental issue of the argument parsing rules in Mercurial, which allows extensions to populate their parsing rules and such extensions can be loaded by "--config extensions.<name>=". There's a chicken and egg problem. We're working on hardening the parsing rules, but which won't come in by default as it would be a behavior change. This patch adds a verification to reject malicious command arguments as a last ditch. The subsequent patches will fix the problem in more appropriate way. Contributed by Yuya Nishihara. git-svn-id: http://svn.redmine.org/redmine/trunk@17060 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Round floats to 2 digits when rendering an issue list to PDF (#12510).Go MAEDA2017-12-061-0/+35
| | | | | | | Patch by Holger Just and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17059 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes visibility checks for version.fixed_issues in Gantt (#27676).Jean-Philippe Lang2017-11-291-1/+1
| | | | | | | | | Like the version page - the Gantt chart featured a "percent done" info for each version, which wasn't properly limited to visible issues. Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@17053 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make robust Redmine::Helpers::URL#uri_with_safe_scheme? (#27114)Go MAEDA2017-11-261-0/+17
| | | | | | | Patch by okkez. git-svn-id: http://svn.redmine.org/redmine/trunk@17035 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Drop Darcs support (#26391).Jean-Philippe Lang2017-07-251-60/+0
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16886 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-5.1 branch (#23630).Jean-Philippe Lang2017-07-232-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set a default size for macro thumbnails different from the preview thumbnails.Jean-Philippe Lang2017-07-191-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16829 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-2554-54/+54
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Tests for Redmine::SyntaxHighlighting::CodeRay.retrieve_supported_languages ↵Jean-Philippe Lang2017-06-061-0/+37
| | | | | | | | (#26055). Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@16625 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter arbitrary class names and ids in rendered HTML output (#25503).Jean-Philippe Lang2017-04-062-3/+54
| | | | | | | | | * Disallow setting arbitrary classes and ids via Textile syntax * Only allow valid/supported languages for syntax highlighted code blocks Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16502 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add kbd to ALLOWED_TAGS (#25503).Jean-Philippe Lang2017-04-061-0/+6
| | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16500 e93f8b46-1217-0410-a6f0-8f06a7374b81
* spelling fixes (#25495)Toshi MARUYAMA2017-04-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16445 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow to set multiple values in emails for list custom fields (#16549).Jean-Philippe Lang2017-03-083-0/+47
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16380 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test failures.Jean-Philippe Lang2017-03-031-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16359 e93f8b46-1217-0410-a6f0-8f06a7374b81