Commit Graph

1293 Commits

Author SHA1 Message Date
Jean-Philippe Lang dcce70095b Option to set parent automatically for new wiki pages (#3108).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8255 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-17 11:44:04 +00:00
Jean-Philippe Lang c8066879db Moved wiki links tests together.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8254 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-17 11:23:26 +00:00
Jean-Philippe Lang ad25e3807d Make sure that tests restore the attachments path to the tmp dir so that fixture files don't get deleted.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8248 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-16 17:52:47 +00:00
Toshi MARUYAMA 34087c4178 add unit test of group blank name in French (#9795)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8236 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 13:06:42 +00:00
Toshi MARUYAMA 2e6b13a5e9 use set_language_if_valid instead of I18n.locale at unit group test (#9795)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8235 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 13:06:00 +00:00
Jean-Philippe Lang f27d426347 Asserts that objects are not nil before getting their ids (test still fails with ruby1.9.3).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8233 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 12:27:41 +00:00
Jean-Philippe Lang a61c9d53eb Set locale in test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8232 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 12:18:20 +00:00
Jean-Philippe Lang 4f5e7d678e Fixed: Unrelated error message when creating a group with an invalid name (#9795).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 11:13:36 +00:00
Jean-Philippe Lang 31f2e848b5 Do not change settings in tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8226 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 10:37:21 +00:00
Jean-Philippe Lang a6f6511372 Do not change settings in tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8225 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 10:30:33 +00:00
Jean-Philippe Lang 6c91e1420a Removed dependency with monkey-patched rubytree.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8214 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 22:51:18 +00:00
Etienne Massip 7d2298f39c Save an @Issue#save@.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8212 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 20:31:34 +00:00
Jean-Philippe Lang 7d501eaf81 Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8200 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-13 20:40:03 +00:00
Toshi MARUYAMA 4f8ed70813 add unit test of CustomField model before_validation
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8190 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-11 12:04:16 +00:00
Jean-Philippe Lang be687f6c0b Makes assertion compatible with ruby1.9.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8169 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 14:00:31 +00:00
Jean-Philippe Lang b1bb26b1e0 ruby1.9: macro must accept 2 arguments.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8168 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 13:55:47 +00:00
Jean-Philippe Lang 3507707325 Fixed assert call.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8166 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 13:48:53 +00:00
Toshi MARUYAMA eb789b147a scm: git: remove unused --since option (#4547, #4716, #7146, #6013)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8156 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 11:55:02 +00:00
Jean-Philippe Lang b127f9157d Resourcified custom fields.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8144 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 22:58:30 +00:00
Toshi MARUYAMA 2afe5bdf57 Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/custom_field_test.rb
On Rails2, Errors#[] returns single error if one error raises.
But, on Rails3, Errors#[] always returns the array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8139 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 07:16:59 +00:00
Toshi MARUYAMA 85382514f9 Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/issue_test.rb
On Rails2, Errors#[] returns single error if one error raises.
But, on Rails3, Errors#[] always returns the array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8138 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 07:16:21 +00:00
Toshi MARUYAMA 8e5242ef63 Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/user_test.rb
On Rails2, Errors#[] returns single error if one error raises.
But, on Rails3, Errors#[] always returns the array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8137 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 07:15:51 +00:00
Toshi MARUYAMA 7aba81dbe7 Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/time_entry_activity_test.rb
On Rails2, Errors#[] returns single error if one error raises.
But, on Rails3, Errors#[] always returns the array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8136 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 07:15:12 +00:00
Toshi MARUYAMA 66b49c634d Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/repository_test.rb
On Rails2, Errors#[] returns single error if one error raises.
But, on Rails3, Errors#[] always returns the array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8135 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 07:14:38 +00:00
Toshi MARUYAMA caf9edf2c1 Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/wiki_page_test.rb
On Rails2, Errors#[] returns single error if one error raises.
But, on Rails3, Errors#[] always returns the array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8134 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 05:55:32 +00:00
Toshi MARUYAMA c8556330c1 Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/version_test.rb
On Rails2, Errors#[] returns single error if one error raises.
But, on Rails3, Errors#[] always returns the array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8132 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 05:54:13 +00:00
Jean-Philippe Lang 42d2bf0baf Makes project and tracker assigned first in #attributes=
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8131 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 20:37:12 +00:00
Toshi MARUYAMA 740b54f55b add unit test of error message in case that member role is empty
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8126 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 15:11:17 +00:00
Toshi MARUYAMA 15bb2fefa4 back out r8124
r8124 shows ":roles can't be empty".

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8125 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 13:37:27 +00:00
Toshi MARUYAMA d9699adce5 Rails3: model: Member: errors must be set on existing attributes
On Rails 3.0, test fails with following error.

<pre>
Error:
test_validate(MemberTest):
NoMethodError: undefined method `role' for #<Member:0x7f73caf8cd08>
    app/models/member.rb:87:in `validate_role'
    test/unit/member_test.rb:76:in `test_validate'
</pre>

Contributed by Sylvain Utard.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8124 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 11:13:24 +00:00
Jean-Philippe Lang a63027e175 Fixed that custom values get saved when assigning custom values after changing to a tracker with different custom fields (#9737).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8103 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-06 22:20:49 +00:00
Jean-Philippe Lang 5ca558f191 Fixed: error when filtering by numeric custom field with postgresql (#9719).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8098 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-05 20:45:45 +00:00
Jean-Philippe Lang 1050993348 Removed unnecessary calculations in time entries index.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8085 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 23:01:42 +00:00
Jean-Philippe Lang 6d498a3c46 Makes spent time column available on the issue list (#971).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8073 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 16:43:32 +00:00
Toshi MARUYAMA 93603f383a add unit test to validate watcher
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8071 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 09:44:11 +00:00
Toshi MARUYAMA 420e70180c add unit test to ensure user preference others is hash in saving
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8069 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 06:43:48 +00:00
Toshi MARUYAMA 747afd8088 add unit test of member_role validate
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8067 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 05:20:42 +00:00
Jean-Philippe Lang a0a6571be3 Adds tests for plugin API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8066 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 21:33:34 +00:00
Jean-Philippe Lang 81bcb4d999 Don't change setting value in tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8063 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 20:28:32 +00:00
Toshi MARUYAMA 7a5d6f61c7 add test to check to set issue category assignee nil in destroying member
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8057 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 16:40:42 +00:00
Jean-Philippe Lang ee5d3ab19b Adds a test for child_pages macro failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 15:32:46 +00:00
Jean-Philippe Lang 036c3a56b4 Adds a test for macro registration.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8054 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 15:29:51 +00:00
Jean-Philippe Lang 30bc5873e0 Adds a test for macro_list wiki macro.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8053 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 15:25:02 +00:00
Jean-Philippe Lang e2e3af4f0d Fixed test_updated_on_eager_load.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8048 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 14:47:24 +00:00
Toshi MARUYAMA 3d1e6f5b96 fix member validate test of empty role at unit test
Id 2 user is already assigned.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8046 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 14:33:02 +00:00
Toshi MARUYAMA 7e62d02abb add gmtime at unit wiki page "test_updated_on_eager_load" for Rails3 compatibility
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8040 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 11:11:32 +00:00
Jean-Philippe Lang 040cfa4ad5 Makes the link in an issue update notification point to the change (#9690).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8030 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-02 21:00:42 +00:00
Jean-Philippe Lang fd24250be0 Fixed: crypting blank passwords raises an error (#9137).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7985 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-29 19:47:51 +00:00
Jean-Philippe Lang d66c8faa9b Fixed: Wiki section edit escapes pre tags inside pre blocks (#9673).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7976 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-28 22:08:15 +00:00
Jean-Philippe Lang c5cabfe106 Fixed: Wiki section edit escapes code tags inside pre blocks (#9673).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7975 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-28 21:45:02 +00:00