summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* do not replace all invalid utf8 (#24616)Toshi MARUYAMA2017-01-281-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16273 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add more tests (#24616)Toshi MARUYAMA2017-01-281-0/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16271 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Group versions by status in version custom field filter (#23265).Jean-Philippe Lang2017-01-141-2/+14
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16194 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't preload custom field filter values (#24787).Jean-Philippe Lang2017-01-121-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16173 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't use assert_equal nil.Jean-Philippe Lang2016-12-131-1/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16072 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't use assert_equal nil.Jean-Philippe Lang2016-12-122-8/+20
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16064 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use assert_nil instead of assert_equal.Jean-Philippe Lang2016-12-114-7/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "Table of contents" heading to toc macro (#23179).Jean-Philippe Lang2016-11-191-1/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15992 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds tests for #hours_field (#23996).Jean-Philippe Lang2016-11-181-0/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15974 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds file custom field format (#6719).Jean-Philippe Lang2016-10-231-0/+163
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Encode values, not full URL (#23841).Jean-Philippe Lang2016-10-011-0/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15846 e93f8b46-1217-0410-a6f0-8f06a7374b81