Commit Graph

22 Commits

Author SHA1 Message Date
Marius Balteanu
4fd86cc7c1 Fixes the request method filtering in sudo mode (#42194),
Patch by Holger Just (user:hjust),


git-svn-id: https://svn.redmine.org/redmine/trunk@23520 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-03-06 21:45:46 +00:00
Go MAEDA
4fb1e4bea0 Use fixtures :all to ensure consistent test data and improve test reliability (#41961).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23391 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-12-11 10:17:57 +00:00
Go MAEDA
a9518e28b8 Fix RuboCop offense Rails/HttpStatus (#39889).
git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-18 05:56:55 +00:00
Go MAEDA
1481c721a2 Use require_relative instead of require File.expand_path(..., __FILE__) (#38093).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 07:13:39 +00:00
Toshi MARUYAMA
104868faa7 remove spaces inside {} of test/integration/sudo_mode_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20462 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-21 13:52:39 +00:00
Toshi MARUYAMA
a2894b61bf shorten long line of test/integration/sudo_mode_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20431 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-19 13:30:16 +00:00
Toshi MARUYAMA
f317b818d6 shorten long line of test/integration/sudo_mode_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20353 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-13 12:39:46 +00:00
Toshi MARUYAMA
00300e8fda fix source indent of test/integration/sudo_mode_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20352 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-13 12:39:37 +00:00
Go MAEDA
af36d450e4 Reverts r19569 (#33071).
404 error after deleting an attachment.


git-svn-id: http://svn.redmine.org/redmine/trunk@19579 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-14 03:49:44 +00:00
Go MAEDA
463e8163fc Require sudo mode for actions to delete contents (#33071).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19569 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-10 03:26:23 +00:00
Go MAEDA
9cdd8bf039 Enables API access to /my/account for updating user account data (#31399).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@18257 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-16 09:34:49 +00:00
Go MAEDA
adebf4da1d Remove trailing whitespaces from test (#31506).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18233 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-06 14:53:23 +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
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
e8cffd614e Fixed that reported test duration can be wrong.
git-svn-id: http://svn.redmine.org/redmine/trunk@16112 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-31 12:18:54 +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
16cc9ec06a Activate sudo mode after password based login (#20589).
Patch by Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@14635 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-01 17:07:06 +00:00
Jean-Philippe Lang
278468c0c8 Adds a UI test (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14345 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 20:42:33 +00:00
Jean-Philippe Lang
4229fafc8f Tests that submitted data is present in the sudo form (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14344 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 20:25:55 +00:00
Jean-Philippe Lang
c2fca37999 Don't use SudoMode.disable! to skip API requests (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14338 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 19:51:24 +00:00
Jean-Philippe Lang
fe9eec19c5 Renamed sudo mode test.
git-svn-id: http://svn.redmine.org/redmine/trunk@14337 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 19:43:21 +00:00