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
Jean-Philippe Lang
000124f44f
Copyright update.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-11 09:09:50 +00:00
Toshi MARUYAMA
e2e9d7185e
replace tab to space at test/test_helper.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13854 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-08 06:20:32 +00:00
Jean-Philippe Lang
1a851318fd
Replaces awesome_nested_set gem with a simple and more robust implementation of nested sets.
...
The concurrency tests added in this commit trigger dead locks and/or nested set inconsistency with awesome_nested_set.
git-svn-id: http://svn.redmine.org/redmine/trunk@13841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 20:19:49 +00:00
Jean-Philippe Lang
12890945e5
Allow attachment thumbnails from REST API ( #18707 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13806 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-26 11:26:24 +00:00
Jean-Philippe Lang
9b082712a0
Adds tests for creating an issue with multiple uploads.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13791 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-22 13:41:51 +00:00
Jean-Philippe Lang
2a6692248b
Replaced "can't" with "cannot" in error messages.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13781 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-21 12:39:48 +00:00
Jean-Philippe Lang
30175bf85e
Restore accent insensitive search with mysql ( #18537 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13767 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-15 19:22:13 +00:00
Jean-Philippe Lang
90e16a35c5
Missing test helper ( #18537 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13761 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-14 16:31:11 +00:00
Jean-Philippe Lang
c3ba302f0d
Use simplecov for code coverage, rcov does not support ruby>=1.9.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13691 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-02 19:59:38 +00:00
Jean-Philippe Lang
f1308e64af
Removed unneeded patch in tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13681 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-30 16:16:12 +00:00
Jean-Philippe Lang
8e84b1a48f
Moved helpers for integration tests in a specific class.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13680 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-30 15:16:43 +00:00
Jean-Philippe Lang
d22029083c
Pull up #setup and #teardown in API tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13679 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-30 15:10:56 +00:00
Jean-Philippe Lang
78e6717ba7
Test cleanup.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13678 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-30 15:02:47 +00:00
Jean-Philippe Lang
f04148695a
Drop shoulda.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13676 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-30 14:31:53 +00:00
Jean-Philippe Lang
372b24627b
Test API authentification once.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13675 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-30 14:11:56 +00:00