summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Insert children issues to respect same order as ids.Jean-Philippe Lang2015-01-071-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13842 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces awesome_nested_set gem with a simple and more robust implementation ↵Jean-Philippe Lang2015-01-073-9/+151
| | | | | | | | 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
* The descendant count in the issues delete confirmation message is wrong if ↵Jean-Philippe Lang2014-12-301-0/+10
| | | | | | issues share some descendants. git-svn-id: http://svn.redmine.org/redmine/trunk@13818 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Force UTF-8 encoding of language names.Jean-Philippe Lang2014-12-261-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13807 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow attachment thumbnails from REST API (#18707).Jean-Philippe Lang2014-12-262-0/+19
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13806 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use upload helper method.Jean-Philippe Lang2014-12-221-20/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13793 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use raw request content in tests to make sure that XML/JSON payload is ↵Jean-Philippe Lang2014-12-221-7/+25
| | | | | | properly parsed. git-svn-id: http://svn.redmine.org/redmine/trunk@13792 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds tests for creating an issue with multiple uploads.Jean-Philippe Lang2014-12-222-0/+96
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13791 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set en locale in test (#18679).Jean-Philippe Lang2014-12-211-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13789 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send the content type as parameter when uploading a file.Jean-Philippe Lang2014-12-211-0/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13788 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Attachment content type not set when uploading attachment (#18667).Jean-Philippe Lang2014-12-211-0/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13787 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: LabelledFormBuilder#label outputs 2 label elements (#18679).Jean-Philippe Lang2014-12-211-0/+28
| | | | | | Patch by Masato NODA. git-svn-id: http://svn.redmine.org/redmine/trunk@13786 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Error when adding user to group where he is already assigned (#18665).Jean-Philippe Lang2014-12-211-0/+13
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13785 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Leading slash required with Rails 4.2.Jean-Philippe Lang2014-12-216-33/+33
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13783 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Subclasses may not be loaded when running the test.Jean-Philippe Lang2014-12-211-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13782 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaced "can't" with "cannot" in error messages.Jean-Philippe Lang2014-12-2133-64/+58
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13781 e93f8b46-1217-0410-a6f0-8f06a7374b81
* PermissionsAttributeCoder.load called twice when mocha expectation is set.Jean-Philippe Lang2014-12-211-2/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13780 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use DOM assertion instead.Jean-Philippe Lang2014-12-211-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13779 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use DOM assertions as attributes order changes from a Rails version to another.Jean-Philippe Lang2014-12-201-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13778 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure that themes are reloaded after test.Jean-Philippe Lang2014-12-201-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13777 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rewrites assertions.Jean-Philippe Lang2014-12-201-2/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13776 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed that quote in a fixture subject.Jean-Philippe Lang2014-12-207-18/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13775 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes test menu item after test.Jean-Philippe Lang2014-12-201-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13773 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set locale for error messages.Jean-Philippe Lang2014-12-201-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13772 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reset current user on each test.Jean-Philippe Lang2014-12-201-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13771 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Restore accent insensitive search with mysql (#18537).Jean-Philippe Lang2014-12-152-11/+24
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13767 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support for named route in project menu and a new :permission option (#6426).Jean-Philippe Lang2014-12-142-6/+27
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13765 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Missing test helper (#18537).Jean-Philippe Lang2014-12-141-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13761 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SQLite does not support case insensitive match for non-ASCII characters ↵Jean-Philippe Lang2014-12-141-1/+9
| | | | | | (#18537). git-svn-id: http://svn.redmine.org/redmine/trunk@13760 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use custom SQL for MySQL to behave like others DBMS: case-insensitive search ↵Jean-Philippe Lang2014-12-141-2/+8
| | | | | | without ignoring accentuation (#18537). git-svn-id: http://svn.redmine.org/redmine/trunk@13759 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixtures to test/unit/search_test.rbToshi MARUYAMA2014-12-141-0/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13758 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mysql LIKE treats Ö and O the same (#18537).Jean-Philippe Lang2014-12-131-2/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13757 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't use #downcase on search tokens, let the database handle it (#18537).Jean-Philippe Lang2014-12-131-0/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13754 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixtures to SearchControllerTestToshi MARUYAMA2014-12-131-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13751 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixture to MembersHelperTestToshi MARUYAMA2014-12-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | Test fails randomly. <pre> 1) Error: MembersHelperTest#test_render_principals_for_new_members: ActiveRecord::RecordInvalid: Validation failed: trackers is invalid, trackers is invalid, trackers is invalid test/object_helpers.rb:38:in `generate!' test/unit/helpers/members_helper_test.rb:29:in `test_render_principals_for_new_members' </pre> It can be reproduced on clean database and following change. <pre> - fixtures :projects, :users, :members, :member_roles + fixtures :projects, :users, :members, :member_roles, + :trackers </pre> git-svn-id: http://svn.redmine.org/redmine/trunk@13749 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't consider roles without issue add/edit permissions for determining ↵Jean-Philippe Lang2014-12-131-0/+23
| | | | | | fields permissions (#15988). git-svn-id: http://svn.redmine.org/redmine/trunk@13747 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Droped legacy behaviour that allows a user to edit a few attributes of an ↵Jean-Philippe Lang2014-12-131-62/+0
| | | | | | | | issue without the edit_issues permission if a status transition is allowed (#15988). Now that we can control permission on each field, this behaviour is no longer needed. The edit_issues permission is now required, which is consistent with the current requirements for bulk edition. git-svn-id: http://svn.redmine.org/redmine/trunk@13746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Misc tests.Jean-Philippe Lang2014-12-131-0/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13745 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Try to find out what causes a ruby bus error with ruby2.x on the CI server.Jean-Philippe Lang2014-12-131-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13743 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a test for editing a registered user.Jean-Philippe Lang2014-12-121-0/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13742 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rewrites search engine to properly paginate results (#18631).Jean-Philippe Lang2014-12-122-37/+41
| | | | | | Instead of counting and retrieving results based on their timestamps, we now load all result ids then load the appropriate results by their ids. This also brings a 2x performance improvement as we search tokens in one of the 2 queries only. git-svn-id: http://svn.redmine.org/redmine/trunk@13739 e93f8b46-1217-0410-a6f0-8f06a7374b81
* ignore X-Autoreply mails (#15999, #13425)Toshi MARUYAMA2014-12-121-1/+2
| | | | | | Contributed by Karel Pičman. git-svn-id: http://svn.redmine.org/redmine/trunk@13738 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert r13736, test fails with mysql.Jean-Philippe Lang2014-12-111-9/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13737 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a test for search with limited results.Jean-Philippe Lang2014-12-111-0/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds some helpers tests.Jean-Philippe Lang2014-12-112-0/+84
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13735 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Misc tests.Jean-Philippe Lang2014-12-082-0/+19
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13734 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't create a journal when creating an issue with attachments.Jean-Philippe Lang2014-12-081-3/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13733 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't create a journal when creating an issue.Jean-Philippe Lang2014-12-081-1/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13732 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Misc tests.Jean-Philippe Lang2014-12-072-8/+37
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13731 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix ProjectNestedSetTest fails randomlyToshi MARUYAMA2014-12-071-0/+1
| | | | | | | | | | | | | | | | | | <pre> 1) Error: ProjectNestedSetTest#test_adding_a_root_to_first_position_should_update_nested_set_order: ActiveRecord::RecordInvalid: Validation failed: trackers is invalid, trackers is invalid, trackers is invalid test/unit/project_nested_set_test.rb:27:in `setup' </pre> You can reproduce with following change. <pre> class ProjectNestedSetTest < ActiveSupport::TestCase + fixtures :trackers </pre> git-svn-id: http://svn.redmine.org/redmine/trunk@13730 e93f8b46-1217-0410-a6f0-8f06a7374b81