Commit Graph

3610 Commits

Author SHA1 Message Date
Toshi MARUYAMA 0396c99945 increase Capybara.default_wait_time from 5 to 6 (#12822)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11968 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-14 04:24:02 +00:00
Jean-Philippe Lang 07d88851bf Fixed tests broken by r11965.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11966 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-12 21:55:39 +00:00
Jean-Philippe Lang f9ddb562d5 Cleanup of finders with :conditions option.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11963 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-12 19:13:25 +00:00
Jean-Philippe Lang 136cdc765a Don't redirect XHR requests to /login.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11962 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-12 16:49:12 +00:00
Jean-Philippe Lang 60d2a5e322 Use #find_issues as before filter for issues context menu.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11961 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-11 18:33:06 +00:00
Jean-Philippe Lang e0c7eb25a4 Adds Watcher.any_watched? to check if at least one object of a collection is watched.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11959 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-11 18:25:05 +00:00
Toshi MARUYAMA ebb73fa258 set html lang by user locale (#14206)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11952 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-10 01:41:30 +00:00
Jean-Philippe Lang 86cfa025ed Adds a test for User.try_to_login with active_only set to false.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11948 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-09 10:12:02 +00:00
Jean-Philippe Lang 4bd874ab46 Adds a way for a registered user to get a new action email (#14228).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11946 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-09 10:01:56 +00:00
Jean-Philippe Lang 2a00c33a61 Splits tests (#1005).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11941 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-06 16:25:51 +00:00
Jean-Philippe Lang d90f46a5da Prepends issue numbers with a number sign (#1005).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11940 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-06 16:22:18 +00:00
Jean-Philippe Lang 019f57e5c7 Fixed that journal details about issue relations may disclose issues that are not visible (#1005).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11939 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-06 16:19:53 +00:00
Toshi MARUYAMA bbd0cb269d remove redundant empty lines from PluginTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11936 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-06 06:47:10 +00:00
Jean-Philippe Lang 8cea7d8cf2 Don't validate start date when updating an issue without changing it (#14086).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11931 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-05 19:56:59 +00:00
Jean-Philippe Lang 4c2776c634 Really adjusts error message in tests (#14086).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11928 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-04 17:41:58 +00:00
Jean-Philippe Lang b0c7884976 Adjusts error message in tests (#14086).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11927 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-04 17:32:13 +00:00
Toshi MARUYAMA 7e4d0209bb increase Capybara.default_wait_time from 4 to 5 (#12822)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11923 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-04 11:57:49 +00:00
Jean-Philippe Lang 5a90b6d0b5 Fixed that project name is not properly escaped in issue filters (#14186).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11915 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-31 20:47:38 +00:00
Toshi MARUYAMA a4394e877e add changeset comment in revision page title (#14138)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11909 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-30 08:05:44 +00:00
Toshi MARUYAMA d2192bba02 add test of revision page title (#14138)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11908 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-30 07:41:17 +00:00
Toshi MARUYAMA f085508121 gantt: sort versions by start date (#7335)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11898 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-21 13:42:34 +00:00
Toshi MARUYAMA 8ea4e79964 gantt: sort issues by start date (#7335)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11897 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-21 13:42:19 +00:00
Toshi MARUYAMA 596366b062 upgrade mocha 0.14 and remove deprecation warning
<pre>
Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`.
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11896 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-21 12:57:11 +00:00
Toshi MARUYAMA 38f6c588ca code layout clean up test_bulk_copy_should_allow_not_changing_the_issue_attributes of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11892 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 04:03:31 +00:00
Toshi MARUYAMA 7def5b551d code layout clean up test_bulk_update_with_some_failures_should_show_errors of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11891 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 04:03:21 +00:00
Toshi MARUYAMA a968c1196e code layout clean up test_bulk_update_parent_id of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11890 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 04:03:11 +00:00
Toshi MARUYAMA e3d47acb0b code layout clean up test_bulk_edit_should_only_propose_statuses_allowed_for_all_issues of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11889 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 04:03:01 +00:00
Toshi MARUYAMA 098a38bb3a code layout clean up test_create_as_copy_should_add_relation_with_copied_issue of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11888 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 04:02:50 +00:00
Toshi MARUYAMA dbc7369d9d adjust functional IssuesControllerTest (#1005)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11887 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 03:40:22 +00:00
Toshi MARUYAMA b3a6555b30 remove "del" tag from deleted issue relation (#1005)
It is confused with deleted issue.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 02:09:49 +00:00
Toshi MARUYAMA 1f9e1ca318 add journal after creating/deleting issue relation (#1005)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11885 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 02:09:39 +00:00
Toshi MARUYAMA 0e20ec697b set default issue start/due datepicker from due/start date (#14024)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11883 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 01:06:25 +00:00
Toshi MARUYAMA cbb8b12ba4 increase Capybara.default_wait_time from 3 to 4 (#12822)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11882 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 01:06:14 +00:00
Toshi MARUYAMA eeeada0773 code layout clean up VersionTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11881 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 01:06:04 +00:00
Toshi MARUYAMA bbca694881 remove empty setup method from VersionTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 01:05:53 +00:00
Toshi MARUYAMA 160f6cd361 add test of current issue start and due date datepicker (#14024)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11879 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-19 00:27:39 +00:00
Toshi MARUYAMA 11b24ab64b replace non ASCII literal to hexadecimal at ApplicationHelperTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11878 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 23:06:53 +00:00
Toshi MARUYAMA 360bda7e68 include Redmine::I18n in ApplicationHelperTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11877 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 22:36:58 +00:00
Toshi MARUYAMA 0c6e2feeaa backout r11875 ApplicationHelperTest change
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11876 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 22:36:45 +00:00
Jean-Philippe Lang bd8b509986 Include Redmine::I18n in helpers tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11875 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 20:29:40 +00:00
Jean-Philippe Lang 1093454193 Adds markings to emails generated by private comments (#12888).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11869 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 17:24:23 +00:00
Toshi MARUYAMA de394f5f74 fix unit VersionTest failure
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11868 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 12:55:24 +00:00
Toshi MARUYAMA 23527da802 backout r11865 test/object_helpers.rb changes
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11867 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 12:07:43 +00:00
Jean-Philippe Lang 61dfab12fd Removed some shoulda context.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11865 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 09:27:48 +00:00
Jean-Philippe Lang 474c010746 Removed some shoulda context.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11864 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 09:14:10 +00:00
Jean-Philippe Lang 8f7b69f77e Removed some shoulda context.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11863 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 08:57:27 +00:00
Jean-Philippe Lang 0d4bb7558f Removed some shoulda context.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11862 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 08:27:53 +00:00
Jean-Philippe Lang 6b03c741ac Adds a link on "My Page" to view all my spent time (#13157).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 07:39:26 +00:00
Toshi MARUYAMA 997bfbe78f gantt: add test to sort issues by current logic (#7335)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-17 22:59:52 +00:00
Jean-Philippe Lang c90bf645f5 Fixed that submitting the form without selecting a value may raise raises an error with SQLServer (#13783).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11854 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-17 18:18:06 +00:00
Jean-Philippe Lang d678959359 Add links to attachments in new issue email notification (#12293).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11853 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-17 16:51:09 +00:00
Toshi MARUYAMA 8bbc6d251e increase Capybara.default_wait_time from default 2 to 3 (#12822)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11852 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-17 04:08:06 +00:00
Jean-Philippe Lang 35ca873269 Fixed that filtering may return unwanted blank values (#14051).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11850 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-16 16:29:59 +00:00
Toshi MARUYAMA f2a609c358 move filter order tests from helper to model.
r11372 (#13154) moves filter order logic from helper to model.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11848 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-16 10:55:27 +00:00
Jean-Philippe Lang b3d80d50a3 Fixed that ordered/unordered lists inside table cell are mangled (#14038).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11845 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-14 16:29:59 +00:00
Jean-Philippe Lang ece5232110 Fixed that values of custom fields are not kept in issues when copying a project (#13910).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11843 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-13 19:52:37 +00:00
Jean-Philippe Lang 4a59b869c0 Update notified_project_ids while saving record.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11840 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-13 17:11:38 +00:00
Jean-Philippe Lang 10ed306b19 Fixed that locking and unlocking a user resets the email notification checkbox (#14020).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11839 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-13 16:38:08 +00:00
Jean-Philippe Lang 0dce4761a8 Disable autofetching of repository changesets if projects are closed (#13945).
Patch by Mischa The Evil.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11838 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-12 10:05:35 +00:00
Jean-Philippe Lang 9b7d312a0e Fix handling multiple text parts in email (#13646).
Patch by Alex Shulgin.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11834 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-12 09:38:20 +00:00
Jean-Philippe Lang 78dc37d8af Improved Issue#all_dependent_issues (#14015).
Patch by Jost Baron.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11827 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-12 08:33:21 +00:00
Toshi MARUYAMA b49ea330d1 prevent failure of test_create_issue_with_watchers at UI IssuesTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11824 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 09:22:57 +00:00
Toshi MARUYAMA 72a46e53ed prevent failure of test_create_issue_with_watchers at UI IssuesTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11822 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 05:51:31 +00:00
Toshi MARUYAMA ed956ba5d4 use with_settings at test_post_create_without_start_date_and_default_start_date_is_creation_date of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11821 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 04:37:42 +00:00
Toshi MARUYAMA e1ba9012c6 use with_settings at test_post_create_without_start_date_and_default_start_date_is_not_creation_date of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11820 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 04:37:31 +00:00
Toshi MARUYAMA a3766c5281 use with_settings at test_get_new_with_default_start_date_is_creation_date of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11819 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 04:37:21 +00:00
Toshi MARUYAMA af2053fe13 use with_settings at test_get_new_without_default_start_date_is_creation_date of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11818 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 04:37:09 +00:00
Toshi MARUYAMA 68ef3aeaa8 remove redundant empty lines from test_show_by_manager of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11817 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 03:50:44 +00:00
Toshi MARUYAMA d65c0e8ed7 remove redundant empty lines from test_show_by_anonymous of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11816 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 03:50:33 +00:00
Toshi MARUYAMA 644455d56b remove redundant empty line from test_index_with_fixed_version_column of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11815 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 03:50:22 +00:00
Toshi MARUYAMA 4b5677101c remove redundant empty line from test_index_should_not_show_spent_hours_column_without_permission of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11814 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 03:50:11 +00:00
Toshi MARUYAMA 47235f7b23 remove redundant empty line from test_index_with_spent_hours_column of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11813 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 03:50:00 +00:00
Toshi MARUYAMA 2542afbc3b remove redundant empty lines from test_index_with_done_ratio_column of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11812 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-10 03:49:48 +00:00
Toshi MARUYAMA 83d3aaf170 remove redundant empty lines from test_index_with_date_column of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11811 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-09 16:14:16 +00:00
Toshi MARUYAMA e038d630d5 prevent assert_difference failure of test_bulk_watch_issues_via_context_menu at UI IssuesTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11809 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-09 13:45:21 +00:00
Toshi MARUYAMA 6d4e43f3fb prevent assert_difference failure of test_watch_issue_via_context_menu at UI IssuesTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11808 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-09 13:45:09 +00:00
Toshi MARUYAMA aaa37be223 fix failure of test_remove_issue_watcher_from_sidebar at UI IssuesTest
<pre>
  2) Failure:
test_remove_issue_watcher_from_sidebar(Redmine::UiTest::IssuesTest) [test/ui/issues_test.rb:186]:
"Watcher.count" didn't change by -1.
<3> expected but was
<4>.
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11807 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-09 13:03:41 +00:00
Toshi MARUYAMA 9f41c7283c add more asserting to test_create_issue_with_watchers of ui issues_test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11804 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-09 11:34:25 +00:00
Jean-Baptiste Barth ec4dbbced5 Add status to /users/:id API for admins (#13948).
Patch by Kambiz Darabi


git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11790 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-05 08:19:17 +00:00
Jean-Philippe Lang d69de691a7 Fixed that bulk copy raises an error on validation failure (#13943).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11788 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-04 15:18:16 +00:00
Jean-Philippe Lang 70bdb86c53 Preserve field values on bulk edit failure (#13943).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11787 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-04 15:03:07 +00:00
Jean-Philippe Lang 1269e6c7d3 Display the bulk edit form with error messages when some issues can not be saved (#13943).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11786 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-04 08:52:51 +00:00
Jean-Philippe Lang ed18b3359b Adds a method for extracting MailHandler options from ENV.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11785 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-04 07:32:35 +00:00
Toshi MARUYAMA 33afeea87a use assert_select instead of assert_tag at versions index sidebar
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11784 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-03 11:39:33 +00:00
Toshi MARUYAMA 784f33daa7 code layout clean up test/functional/versions_controller_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11774 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-03 08:09:16 +00:00
Jean-Baptiste Barth 953e4b4abf Add missing tests for Redmine::MenuManager::Mapper#initialize.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11772 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-03 00:40:41 +00:00
Jean-Baptiste Barth 208d6d881c Add missing tests for Redmine::Helpers::Gantt#number_of_rows.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11771 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-02 23:42:03 +00:00
Jean-Baptiste Barth bc68c1c039 Add missing unit tests for ApplicationHelper#link_to_if_authorized.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11770 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-02 22:57:24 +00:00
Jean-Baptiste Barth 84e455b583 Remove duplicate test TokenTest#test_find_token_should_return_nil_with_wrong_action.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11768 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-02 18:37:20 +00:00
Jean-Baptiste Barth e6ab36d205 Remove duplicate test Redmine::I18nTest#test_time_format (keeping the most complete).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11767 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-02 18:14:26 +00:00
Jean-Baptiste Barth e771d68214 Allow plugins to define their base directory (#13927).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11766 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-02 17:59:34 +00:00
Jean-Philippe Lang c5ac2d3966 Fixed that deleting a system activity with children in use raises an error (#13783).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11763 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-01 17:10:15 +00:00
Jean-Philippe Lang 5a3b903733 Fixed: Unable to set custom fields for versions using the REST API (#13850).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11760 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-01 15:57:31 +00:00
Toshi MARUYAMA 6c182d0a8a remove unused variable from QueriesHelperTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11725 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-19 07:18:26 +00:00
Toshi MARUYAMA 1bdd37f3e0 fix test name (#13482)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11722 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-18 01:09:06 +00:00
Toshi MARUYAMA 19f70c95d1 not add empty header/footer to notification emails (#13482)
Contributed by Max Horn.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11721 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-18 00:58:24 +00:00
Toshi MARUYAMA 9fea2ab6d2 add mail footer test (#13482)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11720 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-18 00:29:29 +00:00
Toshi MARUYAMA c709c5120c extend mail header test to text mail (#13482)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11719 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-18 00:29:18 +00:00
Toshi MARUYAMA 32ee6b3275 stricter asserting of subversion url validation test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11718 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-14 16:18:45 +00:00
Toshi MARUYAMA 7a18920728 add unit tests of subversion url validation
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11717 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-14 15:31:18 +00:00
Toshi MARUYAMA 5d05de4b09 code layout clean up test/unit/repository_subversion_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11716 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-14 15:31:04 +00:00
Toshi MARUYAMA 691add1aff remove redundant 'IssuesHelper#' from issues_helper_test context
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11714 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-12 01:18:52 +00:00
Toshi MARUYAMA c745acf4c2 code layout clean up issues_helper_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11713 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-12 01:18:40 +00:00
Toshi MARUYAMA 6469e9a5a3 fix diff error in case of line_left out of range (#13644)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11707 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-05 07:30:51 +00:00
Jean-Philippe Lang 25209273d3 Fixed that CSV Export of Spent Time ignores filters and columns selection (#13618).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11696 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-03 16:48:28 +00:00
Jean-Philippe Lang ed5b14884c Fixed that r11641 prevents precedes/follows relations between subtasks (#13586).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11692 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-26 21:31:29 +00:00
Toshi MARUYAMA 8045ef9d3d add missing Portuguese jQuery UI date picker (#13584)
jquery.ui.datepicker-pt.js is from
https://raw.github.com/jquery/jquery-ui/49f9b849b9c5023f13/ui/i18n/jquery.ui.datepicker-pt.js

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11686 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-25 12:12:28 +00:00
Toshi MARUYAMA 213e8facee add test of datepicker in Simplified Chinese and Traditional Chinese (#13579)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-25 11:46:41 +00:00
Toshi MARUYAMA 919d4589b9 fix unit search test failure (#13405)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11674 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-21 23:40:21 +00:00
Toshi MARUYAMA 1e5fa50a80 add test to ensure language name is UTF-8 (#12475)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11673 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-21 22:54:59 +00:00
Toshi MARUYAMA 31590e307a fix test failure (#13405)
<pre>
  1) Failure:
test_scan_changesets_for_issue_ids(RepositoryTest) [/xxx/test/unit/repository_test.rb:214]:
<"Applied in changeset r2."> expected but was
<"Applied in changeset commit:691322a8eb01e11fd7.">.
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11672 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-21 22:54:48 +00:00
Etienne Massip d7cb14773b Fixed commit link title escaping (fixes #13405).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11671 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-21 21:53:28 +00:00
Toshi MARUYAMA 75050f767a Traditional Chinese "label_total_time" translation changed by ChunChang Lo (#13528)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11668 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-20 06:02:58 +00:00
Toshi MARUYAMA 8cbd91214d code layout cleanup test/integration/account_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11667 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-20 06:02:48 +00:00
Jean-Philippe Lang 38b3e045cf Fixed: Circular loop when using relations and subtasks (#8794).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11641 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-17 15:02:57 +00:00
Jean-Philippe Lang b1afd75620 Fixed: subtasks don't resepect following/precedes relations on creation (#12968).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11640 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-17 13:46:20 +00:00
Jean-Philippe Lang 61396f68d0 Use #count instead of #size.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11612 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-12 20:44:25 +00:00
Jean-Philippe Lang bca9a8431e Mail handler: set mail_notification to only_my_events when creating a new user (#13341).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11590 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-11 17:50:18 +00:00
Jean-Philippe Lang 06a92fe0d0 Adds label_total_time string (#13337).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11582 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-10 13:01:46 +00:00
Toshi MARUYAMA d3de07a17c fix that diff outputs become ??? in some non ASCII words (#12641)
Contributed by Filou Centrinov.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11549 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-07 10:36:06 +00:00
Toshi MARUYAMA 6a4966fe10 remove trailing white-spaces from test/functional/account_controller_openid_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11538 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-06 08:41:48 +00:00
Jean-Philippe Lang f77ed4a7c3 Mail handler: adds --no-notification option to disable notifications to the created user (#13341).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11526 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-03 08:57:00 +00:00
Jean-Philippe Lang 6cffab9919 Mail handler: adds --no-account-notice option for not sending account information to the created user (#11498).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11525 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-03 08:41:52 +00:00
Jean-Philippe Lang b25d496c24 Mail handler: adds --default-group option to add created user to one or more groups (#13340).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11522 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-03 07:59:29 +00:00
Jean-Philippe Lang a010372458 Fixed that autologin cookie is not deleted when using custom cookie name (#13335).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11520 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-02 20:30:57 +00:00
Jean-Philippe Lang 08ef201cec Fixed that autologin is broken when using a custom cookie name (#13335).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11519 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-02 20:28:21 +00:00
Jean-Philippe Lang 80807a8c49 Add user's API key to /users/current.format (#8529).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11518 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-01 16:32:30 +00:00
Jean-Philippe Lang caf61dc923 Fixed that copying an issue as a child of itself creates an extra issue (#13328).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11513 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-01 12:26:06 +00:00
Jean-Philippe Lang 4185a4ae3b Test failures (#13309).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11512 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-01 11:27:55 +00:00
Jean-Philippe Lang a140a03a35 Adds "tracker-[id]" CSS class to issues (#13309).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-01 10:42:05 +00:00
Jean-Philippe Lang 6803d95a32 Performance: avoid querying all memberships in User#roles_for_project (#13301).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11508 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-01 10:24:23 +00:00
Jean-Philippe Lang 69657be534 Test failure with ruby 2.0.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11507 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-01 09:01:05 +00:00
Jean-Philippe Lang 5bf647f290 Don't reload the issue in after_save callback.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11495 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-28 17:47:58 +00:00
Jean-Philippe Lang 870d9bad86 Removed deferred test, circular relations are unit tested.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11475 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-24 13:03:00 +00:00
Jean-Philippe Lang 5b4a9ac3b3 Restricts characters before auto links (#10277).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11474 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-24 12:56:50 +00:00
Jean-Philippe Lang dfca67d844 Fixed that www followed by a dot generates broken links in formatted text (#3676).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11473 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-24 12:39:06 +00:00
Jean-Philippe Lang 458800c1d5 Time entry with 2 digits year should not validate (#3107).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11472 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-24 12:28:44 +00:00
Jean-Philippe Lang 0a6a7f0ed7 Fixed that time entries report by week breaks on edge cases (#5329).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11471 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-24 12:18:29 +00:00
Jean-Philippe Lang 6f21796c34 Missing fixtures.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11462 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-24 10:05:58 +00:00
Jean-Philippe Lang 8e17c2aeac Fixed that relations may not be refreshed when adding a follows relation (#13251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11461 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-24 09:59:45 +00:00
Jean-Philippe Lang 85b872f340 Makes project custom fields available on spent time report (#1766).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11459 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-24 08:57:04 +00:00
Jean-Philippe Lang e14caf8e33 Use User#generate_password in MailHandler.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11457 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-23 16:57:45 +00:00
Jean-Philippe Lang fac4a79d4c Option to generate a random password on user creation/update.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11456 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-23 16:50:07 +00:00
Jean-Philippe Lang 797a9f1ea9 Refactor: #issues_to_csv and #entries_to_csv merged into QueriesHelper#query_to_csv.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11448 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-23 11:07:43 +00:00
Jean-Philippe Lang 9b1ebd6808 Refactor: makes issue id a regular QueryColumn.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11447 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-23 10:53:21 +00:00
Jean-Philippe Lang d1244b31a4 Fixed that requesting a message from an invalid forum should respond with 404 (#13232).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11446 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-20 20:59:52 +00:00
Jean-Philippe Lang 2ae7ddcb24 Asserts that the watchers list is updated.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11445 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-20 20:49:01 +00:00
Jean-Philippe Lang aca31973c2 Fixed that delete watcher link was broken by r11290 (#13231).
Deleting a watcher now use DELETE /watchers instead of POST /watchers/destroy.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11443 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-20 20:43:28 +00:00
Jean-Philippe Lang f8c649320f Makes all time entry columns available in the CSV export.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11442 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-19 20:41:54 +00:00
Jean-Philippe Lang af92686c62 Fixed that float custom fields do not use CSV decimal separator (#10364).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11441 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-19 20:01:00 +00:00