summaryrefslogtreecommitdiffstats
path: root/test/unit
Commit message (Collapse)AuthorAgeFilesLines
* Copyright update.Jean-Philippe Lang2015-01-11126-150/+150
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Redmine::FieldFormat::IntFormat does not accept "real" Integer values ↵Jean-Philippe Lang2015-01-101-0/+2
| | | | | | (#18781). git-svn-id: http://svn.redmine.org/redmine/trunk@13863 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that project copy triggers a 500 error if project validation fails.Jean-Philippe Lang2015-01-071-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13848 e93f8b46-1217-0410-a6f0-8f06a7374b81
* 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-072-0/+149
| | | | | | | | 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
* 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
* 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
* Replaced "can't" with "cannot" in error messages.Jean-Philippe Lang2014-12-2114-20/+20
| | | | 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 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-204-9/+9
| | | | 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-151-11/+20
| | | | 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
* 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 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
* 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
* Rewrites search engine to properly paginate results (#18631).Jean-Philippe Lang2014-12-121-24/+24
| | | | | | 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
* 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
* 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
* Adds tests for Role#has_permissions?Jean-Philippe Lang2014-12-061-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13725 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a test for Watcher.prune with :project option.Jean-Philippe Lang2014-12-061-1/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13724 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a test for #18584.Jean-Philippe Lang2014-12-061-0/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13722 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure that Redmine::Thumbnail.generate is called.Jean-Philippe Lang2014-12-051-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13714 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds some Attachment tests.Jean-Philippe Lang2014-12-051-0/+22
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13709 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a few tests.Jean-Philippe Lang2014-12-033-0/+57
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13695 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set notified events as expected.Jean-Philippe Lang2014-11-301-5/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13683 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Textile: ignore invalid lang attribute values (#18501).Jean-Philippe Lang2014-11-301-0/+14
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13677 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Drop shoulda.Jean-Philippe Lang2014-11-302-13/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13676 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove contexts in QueryTest.Jean-Philippe Lang2014-11-301-118/+114
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13674 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Gantt unit tests cleanup.Jean-Philippe Lang2014-11-301-462/+201
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13673 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Edit attachments after upload (#1326).Jean-Philippe Lang2014-11-291-0/+39
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13665 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Group filters in the filter select list (#13849).Jean-Philippe Lang2014-11-281-6/+49
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13662 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added missing tests for notify_about?Jean-Philippe Lang2014-11-241-24/+27
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13650 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed some test contexts.Jean-Philippe Lang2014-11-241-71/+34
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13649 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed tests broken by r13646.Jean-Philippe Lang2014-11-231-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13648 e93f8b46-1217-0410-a6f0-8f06a7374b81