Toshi MARUYAMA
26a071a5da
add empty line after guard clause to test/test_helper.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20048 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-17 15:49:22 +00:00
Toshi MARUYAMA
0421636cd7
add Redmine::Database.sqlite? as with postgresql? and postgresql?
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19711 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-20 02:06:57 +00:00
Toshi MARUYAMA
ea5da4d1be
remove duplicate mysql? and postgresql? logic
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19710 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-20 02:06:45 +00:00
Toshi MARUYAMA
3711da2529
use CGI.unescapeHTML instead of CGI::unescapeHTML in test/test_helper.rb as with previous revision
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19709 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-20 02:06:35 +00:00
Toshi MARUYAMA
56af84bf3c
use same "Redmine::Database.mysql?" as with r19706 in test/test_helper.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19708 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-20 02:06:24 +00:00
Toshi MARUYAMA
f6f136871a
scm: git: add test of UTF-8 Emoji committer and comments ( #24030 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19699 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-14 08:20:52 +00:00
Go MAEDA
907e0173e4
Update copyright year in source files to 2020 ( #33069 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Go MAEDA
f37ed77665
Use #media_type instead of #content_type to test the MIME type of a response ( #32886 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19467 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-27 03:54:25 +00:00
Go MAEDA
b6f1d03194
Require 'mocha/minitest' instead of deprecated 'mocha/setup' ( #32592 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19358 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-12-11 13:59:01 +00:00
Toshi MARUYAMA
f8fcad6afb
cleanup: rubocop: fix Layout/IndentFirstHashElement in test/test_helper.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19276 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 16:45:53 +00:00
Toshi MARUYAMA
98777fdb8b
cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in test/test_helper.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19275 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 16:45:43 +00:00
Toshi MARUYAMA
109973a908
cleanup: rubocop: fix Layout/AlignArguments in test/test_helper.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19250 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 12:58:14 +00:00
Toshi MARUYAMA
b29ec77bb7
code cleanup: rubocop: fix Layout/CaseIndentation in test/test_helper.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18662 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-14 17:47:17 +00:00
Go MAEDA
baebb89ff6
Fix FrozenError during tests ( #32071 , #26561 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18474 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-16 09:23:55 +00:00
Go MAEDA
dbaea7c599
mail_body method in test/test_helper.rb raises an exception if the message is not multipart ( #32025 ).
...
This change fixes random test failures.
git-svn-id: http://svn.redmine.org/redmine/trunk@18465 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-13 08:51:46 +00:00
Go MAEDA
f1c29cdb8c
Run test only when GhostScript is available ( #22481 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18221 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-02 23:39:15 +00:00
Go MAEDA
7f110f7277
Remove trailing whitespaces from test/test_helper.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18220 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-02 23:23:01 +00:00
Go MAEDA
4082069c75
Update copyright year.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
b0e17e8199
Don't rescue Exception class ( #31387 ).
...
Patch by Go MAEDA and Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 06:50:25 +00:00
Go MAEDA
4f5a3a156c
Enable frozen_string_literal for some files under test directory ( #26561 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17978 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 15:03:47 +00:00
Go MAEDA
5861160ffc
Add "frozen_string_literal: false" for all files ( #26561 ).
...
This will be changed to true in the future.
git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Jean-Philippe Lang
f05f3b50c8
Test failure.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17725 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-12 20:04:25 +00:00
Jean-Philippe Lang
78a15a23b4
Fix random test failure, assertion must be made against displayed values.
...
IssuesControllerTest#test_index_sort_by_spent_hours_should_sort_by_visible_spent_hours
Expected: [3.0, 0.0, 0.0]
Actual: [3.0, 4.0, 0.0]
git-svn-id: http://svn.redmine.org/redmine/trunk@17672 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-01 11:43:22 +00:00
Go MAEDA
a4ffda7b37
Use button as additional option for contextmenu ( #26655 ).
...
Patch by Felix Gliesche.
git-svn-id: http://svn.redmine.org/redmine/trunk@17298 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-21 12:00:22 +00:00
Jean-Philippe Lang
d74f0bfd5c
Merged rails-5.1 branch ( #23630 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
Jean-Philippe Lang
2a721fff4c
Set default configuration for the timelog list ( #26356 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16814 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-12 18:13:20 +00:00
Jean-Philippe Lang
7fd04e1f8d
Update copyright.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
f414e3c863
Create tmp directory on test launch.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16587 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 18:25:23 +00:00
Jean-Philippe Lang
966f238da4
Use Rails 5 syntax for integration tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16586 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 18:17:27 +00:00
Jean-Philippe Lang
b834e81d7f
Use Rails 5 syntax for functional tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16585 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-31 17:32:34 +00:00
Jean-Philippe Lang
1b81a030ce
Cleanup tests with mock files.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16461 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-03 12:48:58 +00:00
Jean-Philippe Lang
09f4a7d3f6
Reset locale to "en" before helpers tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16232 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-19 23:32:04 +00:00
Jean-Philippe Lang
9d747d6811
Reset current user before helpers tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-19 23:22:26 +00:00
Jean-Philippe Lang
e937cb533e
Use assert_nil instead of assert_equal.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16059 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-11 15:22:29 +00:00
Jean-Philippe Lang
e1da6de36f
Removes calls to #assert_template and #assigns in integration tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15727 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-21 17:50:00 +00:00
Jean-Philippe Lang
ec31b61698
Removes calls to #assert_template and #assigns in functional tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15695 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-18 21:26:30 +00:00
Jean-Philippe Lang
c4b4b8a71e
Adds a class for testing helpers.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15683 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-16 11:36:57 +00:00
Jean-Philippe Lang
6cc6a918b4
Pass parameters with :params in controller tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15666 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-16 07:43:16 +00:00
Jean-Philippe Lang
11c85279ab
Accept 5 arguments.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15665 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-16 06:58:48 +00:00
Jean-Philippe Lang
c364e6ee9b
Pass parameters with :params in controller tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15664 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-16 06:19:52 +00:00
Jean-Philippe Lang
2e4e610930
Adds our own class for controller tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15661 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 09:35:49 +00:00
Jean-Philippe Lang
cda9c63d9c
Updates copyright for 2016.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
52621c697d
Makes the test LDAP host configurable ( #21674 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15088 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-22 18:10:26 +00:00
Jean-Philippe Lang
035edd39c4
Import issues from CSV file ( #950 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-14 08:20:32 +00:00
Jean-Philippe Lang
e67bc3637e
Replace tab introduced in r14388 in test/test_helper.rb with spaces ( #20242 ).
...
Patch by Mischa The Evil.
git-svn-id: http://svn.redmine.org/redmine/trunk@14412 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-07-05 13:52:02 +00:00
Jean-Philippe Lang
004fc8b84b
Fixed that user with "Manage public queries" permission, can create global public query ( #19842 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14388 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-29 16:06:37 +00:00
Jean-Philippe Lang
e12322dac3
Adds a configuration setting to enable sudo mode, disabled by default ( #19851 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14336 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 19:42:49 +00:00
Jean-Philippe Lang
c3b91d6f04
Fixed assertions for SQLServer that format dates with MM/DD/YYYY in queries.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13992 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-08 16:01:20 +00:00
Jean-Philippe Lang
af5872b7d4
Support for accent insensitive search with PostgreSQL ( #18801 ).
...
If the unaccent extension is installed, the search engine will use it in order to do accent insensitive search.
git-svn-id: http://svn.redmine.org/redmine/trunk@13989 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-08 15:13:57 +00:00
Jean-Philippe Lang
d85f73a30d
Upgrade to Rails 4.2.0 ( #14534 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13892 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-17 17:02:55 +00:00