summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/unified_diff_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove trailing whitespaces from test/unit/lib/redmine/unified_diff_test.rb ↵Go MAEDA2024-02-051-2/+2
| | | | | | (#31507). git-svn-id: https://svn.redmine.org/redmine/trunk@22680 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ensure tests remain robust against trailing whitespace removal (#31507).Go MAEDA2024-02-051-11/+11
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22679 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense "Lint/Syntax: invalid escape character syntax" (#38585).Go MAEDA2024-01-271-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22650 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use `require_relative` instead of `require File.expand_path(..., __FILE__)` ↵Go MAEDA2023-01-011-1/+1
| | | | | | | | | (#38093). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove empty line at method body end of ↵Toshi MARUYAMA2020-12-111-1/+0
| | | | | | test/unit/lib/redmine/unified_diff_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20626 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of test/unit/lib/redmine/unified_diff_test.rbToshi MARUYAMA2020-12-041-10/+20
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20567 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove git format patch footer (#33357)Toshi MARUYAMA2020-05-051-2/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19752 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add git format patch to UnifiedDiffTest (#33357)Toshi MARUYAMA2020-05-051-0/+38
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19751 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add test to UnifiedDiffTest to keep similar git footer line (#33357)Toshi MARUYAMA2020-04-301-0/+40
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19734 e93f8b46-1217-0410-a6f0-8f06a7374b81
* 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/IndentHeredoc in ↵Toshi MARUYAMA2019-11-081-11/+10
| | | | | | Redmine::UnifiedDiffTest#test_partials_with_html_entities git-svn-id: http://svn.redmine.org/redmine/trunk@18975 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentHeredoc in ↵Toshi MARUYAMA2019-11-081-16/+15
| | | | | | Redmine::UnifiedDiffTest#test_line_starting_with_dashes git-svn-id: http://svn.redmine.org/redmine/trunk@18974 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentHeredoc in ↵Toshi MARUYAMA2019-11-081-27/+26
| | | | | | Redmine::UnifiedDiffTest#test_one_line_new_files git-svn-id: http://svn.redmine.org/redmine/trunk@18973 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentHeredoc in ↵Toshi MARUYAMA2019-11-081-21/+18
| | | | | | Redmine::UnifiedDiffTest#test_include_a_b_slash git-svn-id: http://svn.redmine.org/redmine/trunk@18972 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentHeredoc in ↵Toshi MARUYAMA2019-11-081-16/+15
| | | | | | Redmine::UnifiedDiffTest#test_both_git_diff git-svn-id: http://svn.redmine.org/redmine/trunk@18971 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentHeredoc in ↵Toshi MARUYAMA2019-11-081-41/+40
| | | | | | Redmine::UnifiedDiffTest#test_previous_file_name_with_git git-svn-id: http://svn.redmine.org/redmine/trunk@18970 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentHeredoc in ↵Toshi MARUYAMA2019-11-081-9/+9
| | | | | | Redmine::UnifiedDiffTest#test_offset_range_ascii_1 git-svn-id: http://svn.redmine.org/redmine/trunk@18969 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentHeredoc in ↵Toshi MARUYAMA2019-11-081-9/+9
| | | | | | Redmine::UnifiedDiffTest#test_offset_range_ascii_2 git-svn-id: http://svn.redmine.org/redmine/trunk@18968 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove trailing whitespaces from test (#31506).Go MAEDA2019-06-061-7/+7
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18233 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-25/+12
| | | | | | | | | 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
* 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
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 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
* 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-24/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 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
* fix diff of CJK(Chinese/Japanese/Korean) is broken on Ruby 1.8 (#14562)Toshi MARUYAMA2013-07-281-0/+48
| | | | | | Contributed by Jun NAITOH. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12046 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix diff error in case of line_left out of range (#13644)Toshi MARUYAMA2013-04-051-0/+64
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11707 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix that diff outputs become ??? in some non ASCII words (#12641)Toshi MARUYAMA2013-03-071-0/+23
| | | | | | Contributed by Filou Centrinov. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11549 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/lib/redmine/unified_diff_test.rbToshi MARUYAMA2012-09-191-4/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10430 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use git diff format for all diff (#11868)Toshi MARUYAMA2012-09-191-0/+54
| | | | | | Mercurial diff uses git format. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10428 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
* Fixed that partial diffs are done against html instead of original code (#9143).Jean-Philippe Lang2012-02-151-0/+23
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8876 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from test/unit/lib/redmine/unified_diff_test.rb.Toshi MARUYAMA2011-08-301-18/+18
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6760 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Highlight changes inside diff lines (#7139).Jean-Philippe Lang2011-03-111-1/+58
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5094 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: fix diffs do not handle one line new files properly (#7618).Toshi MARUYAMA2011-02-231-1/+32
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4929 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
* Fixes diff parser for when lines starting with multiple dashes are removed ↵Jean-Philippe Lang2009-11-111-0/+26
| | | | | | (#4186). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3028 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
* Adds a setting to limit the number of diff lines that should be displayed ↵Jean-Philippe Lang2008-12-071-0/+42
(default to 1500). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2112 e93f8b46-1217-0410-a6f0-8f06a7374b81