Commit Graph

2739 Commits

Author SHA1 Message Date
Jean-Philippe Lang 8071b71c5d No need to delete fixtures.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9089 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 13:48:44 +00:00
Jean-Philippe Lang 80663e694d Removed shoulda assertions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9088 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 13:43:17 +00:00
Jean-Philippe Lang a6992aa6fc Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9087 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 13:39:57 +00:00
Jean-Philippe Lang 3aaf2b9ed0 Adds helpers for testing email body.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9086 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 13:28:18 +00:00
Jean-Philippe Lang 9b576d7d0a Rails3: :order option has no effect here because of the default_scope on Enumeration.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9084 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 12:50:19 +00:00
Jean-Philippe Lang 45e2e57afb Test cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9083 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 12:44:58 +00:00
Jean-Philippe Lang 7ec8a9a100 Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9082 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 12:43:55 +00:00
Jean-Philippe Lang b06223738e Test cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9081 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 12:41:31 +00:00
Jean-Philippe Lang d862843c9d Renamed Mailer#test to Mailer#test_email.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9080 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 12:38:34 +00:00
Jean-Philippe Lang 1b923819e8 Removed some generate! calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9079 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 12:29:52 +00:00
Jean-Philippe Lang 7dbc3e4774 Removed some generate! calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9078 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 12:15:57 +00:00
Jean-Philippe Lang bcd8c64384 No need to save the record.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9077 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 12:03:59 +00:00
Jean-Philippe Lang c30a6dffe0 Use :joins instead of :include.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9076 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 11:54:52 +00:00
Jean-Philippe Lang 64d843a4d7 Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9073 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 11:41:10 +00:00
Toshi MARUYAMA 858e317e6e set svn:eol-style native test/exemplars/version_exemplar.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9072 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 11:08:32 +00:00
Jean-Philippe Lang 70ced2f2af Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9067 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 10:44:59 +00:00
Jean-Philippe Lang 739820141a Extracted auto_link and auto_mailto to a module.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9063 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 10:04:46 +00:00
Jean-Philippe Lang b4f22b93e9 Use regular create! instead of generate!
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9062 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-03 19:47:20 +00:00
Jean-Philippe Lang b3866b05c1 Removes all #verify calls in controllers. Verification is handled at routing level now that the default route is removed.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9061 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-03 15:09:20 +00:00
Jean-Philippe Lang 7edf345fbe Adds a test for displaying list custom fields on the new issue form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9058 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-02 16:57:57 +00:00
Jean-Philippe Lang 9634fe054a Adds a test for when updating a news fails.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9054 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-02 11:43:33 +00:00
Jean-Philippe Lang 9ffccf5304 Adds functional test for #test_connection.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9053 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-02 11:31:44 +00:00
Jean-Philippe Lang 8fda77dc40 Adds functional tests for LdapAuthSourcesController.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9052 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-02 11:25:19 +00:00
Jean-Philippe Lang 53f9979696 Use valid filters in #test_index_with_sort_filters.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9050 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-02 07:38:43 +00:00
Jean-Philippe Lang f1358200d6 Removed obsolete helper empty test class.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9048 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 20:46:06 +00:00
Jean-Philippe Lang 2009a9ff25 Random test failures in #test_..._if_an_exception_is_raised with ruby1.8.7-p358 and sqlite3.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9047 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 20:34:41 +00:00
Jean-Philippe Lang 7448e0dbc4 Fixed that the bulk edit/copy form does not propose versions and categories for the target project (#10350).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9046 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 20:22:08 +00:00
Jean-Philippe Lang ac46497f1a Fixes LDAP test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9045 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 19:47:03 +00:00
Jean-Philippe Lang 60741b3e1c Adds an optional LDAP filter (#1060).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9044 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 16:26:10 +00:00
Jean-Philippe Lang ab46c52d4a MailHandler: fixed that sender's fullname is not unquoted (#10334).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9043 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 15:32:34 +00:00
Toshi MARUYAMA 2df6c99e67 back out from r9031 to r9036
On Rails3, 'to_s' is not alias of 'encoded'.
'to_s' is alias of 'decoded'.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9037 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 11:40:22 +00:00
Toshi MARUYAMA 30ce0cd8fb Rails3: test: add .to_s for mail's bodies check at unit/mailer_test.rb
On Rails3, mail's bodies must be checked calling 'encoded'.
'to_s' is alias of 'encoded' of Mail::Message of Rails3.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9036 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 08:10:27 +00:00
Toshi MARUYAMA 7cdce2aeac Rails3: test: add .to_s for mail's bodies check at unit/repository_test.rb
On Rails3, mail's bodies must be checked calling 'encoded'.
'to_s' is alias of 'encoded' of Mail::Message of Rails3.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9035 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 08:09:35 +00:00
Toshi MARUYAMA e70f7ba75c Rails3: test: add .to_s for mail's bodies check at functional/users_controller_test.rb
On Rails3, mail's bodies must be checked calling 'encoded'.
'to_s' is alias of 'encoded' of Mail::Message of Rails3.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9034 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 08:08:58 +00:00
Toshi MARUYAMA fd18bcef95 Rails3: test: add .to_s for mail's bodies check at functional/messages_controller_test.rb
On Rails3, mail's bodies must be checked calling 'encoded'.
'to_s' is alias of 'encoded' of Mail::Message of Rails3.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9033 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 08:08:25 +00:00
Toshi MARUYAMA 41217ffea0 Rails3: test: add .to_s for mail's bodies check at functional/issues_controller_test.rb
On Rails3, mail's bodies must be checked calling 'encoded'.
'to_s' is alias of 'encoded' of Mail::Message of Rails3.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9032 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 08:07:41 +00:00
Toshi MARUYAMA 12ba0ba1c5 Rails3: test: add .to_s for mail's bodies check at functional/files_controller_test.rb
On Rails3, mail's bodies must be checked calling 'encoded'.
'to_s' is alias of 'encoded' of Mail::Message of Rails3.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9031 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 08:07:10 +00:00
Jean-Philippe Lang c0048f7954 Fixed potential test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9028 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-28 05:35:33 +00:00
Jean-Philippe Lang c3d079aeb8 Fixed potential test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9027 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-28 05:33:46 +00:00
Jean-Philippe Lang 586661caad Fixed potential test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9026 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-28 05:29:36 +00:00
Jean-Philippe Lang c7e81dfa9b Fixed potential test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9025 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-28 05:25:26 +00:00
Jean-Philippe Lang 774e5f3b5e Fixed potential test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9024 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-28 05:25:04 +00:00
Etienne Massip 7056649a4b Override @#url_for@ in AM to force generation of absolute links (#10251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9022 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-27 18:42:03 +00:00
Jean-Philippe Lang fba7789bb1 Adds a test for project menu item when displaying a revision.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9020 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-27 15:26:35 +00:00
Jean-Philippe Lang 4384db597c Adds a test for when displaying the new message form on boards#show.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9019 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-27 15:11:50 +00:00
Jean-Philippe Lang 7c568cccaf Adds a helper for displaying validation error messages.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9017 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 18:07:13 +00:00
Toshi MARUYAMA 9c264a7e66 Rails3: scm: cvs: fix error of test_fetch_changesets_incremental at unit model test
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 14:09:21 +00:00
Jean-Philippe Lang 39aa4cac86 Moved tests about session reset to functional tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9014 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 12:00:41 +00:00
Jean-Philippe Lang 33d4821923 Rewrite test without shoulda macros.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9009 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 20:47:23 +00:00
Jean-Philippe Lang 4f153083ac Removed assertions on blank template.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9008 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 20:42:31 +00:00
Jean-Philippe Lang 4f31027f08 Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9007 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 16:33:00 +00:00
Jean-Philippe Lang 62c8ad4df4 Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9006 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 16:31:13 +00:00
Jean-Philippe Lang 888287c602 Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9005 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 15:23:20 +00:00
Jean-Philippe Lang 10a37f4b6b Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9004 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 15:20:28 +00:00
Jean-Philippe Lang cf9154f924 Can not use Project#find on scopes with Rails 3.1.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9001 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 12:57:30 +00:00
Jean-Philippe Lang 21607751c9 Clean up assertion.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8999 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 12:35:22 +00:00
Jean-Philippe Lang 9964e20a03 Adds missing format parameter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8992 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 10:41:22 +00:00
Jean-Philippe Lang 28503d83cb Do not do assertions on mail class.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8991 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 09:58:23 +00:00
Toshi MARUYAMA b7ead65fde Rails3: test: fix ordering functional/comments_controller_test.rb
On Rails 3.0.11, test fails.

<pre>
Failure: <"This is a test comment"> expected but was
<"my first comment">.
test_add_comment(CommentsControllerTest)
test/functional/comments_controller_test.rb:34:in `test_add_comment'
</pre>

Contributed by Sylvain Utard.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8987 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 01:43:11 +00:00
Jean-Philippe Lang 4a6de486ba Use fixture.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8983 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 21:24:00 +00:00
Jean-Philippe Lang cc19635b6e Potential test failure fixed.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8981 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 18:43:35 +00:00
Jean-Philippe Lang 528735b955 Use subclasses method instead of class variable.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 18:23:58 +00:00
Toshi MARUYAMA 1f2f32f58c scm: cvs: add test to override human_attribute_name
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8968 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:02:26 +00:00
Toshi MARUYAMA e323a0c20c scm: filesystem: add test to override human_attribute_name of "Root directory"
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8967 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 13:04:06 +00:00
Toshi MARUYAMA 41c16ecb2f scm: mercurial: remove unnecessary log_encoding from overriding human_attribute_name test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8966 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 12:38:58 +00:00
Toshi MARUYAMA c5ed7bbce5 scm: git: remove unnecessary log_encoding from overriding human_attribute_name test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8965 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 12:38:35 +00:00
Toshi MARUYAMA beb3b23fb6 scm: mercurial: add test to override human_attribute_name of "path to repository"
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8964 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 11:31:59 +00:00
Toshi MARUYAMA ca9e41280a scm: git: add test to override human_attribute_name of "path to repository"
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8963 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 11:31:38 +00:00
Toshi MARUYAMA d004d83183 scm: mercurial: split unit model test setup whether repository required or not
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8962 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 11:18:59 +00:00
Toshi MARUYAMA 4a7de0cd63 scm: git: split unit model test setup whether repository required or not
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8961 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 11:18:37 +00:00
Toshi MARUYAMA 9f581b9eeb scm: bazaar: add test to override human_attribute_name of "path to repository"
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8960 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 10:02:20 +00:00
Toshi MARUYAMA b73d5d7ecc scm: darcs: add test to override human_attribute_name of "path to repository"
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8959 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 10:01:58 +00:00
Toshi MARUYAMA 873e57dc86 code layout cleanup test/unit/repository_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8958 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 04:09:06 +00:00
Toshi MARUYAMA c0cdde6506 scm: add test to override human_attribute_name of log_encoding
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8957 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 04:08:47 +00:00
Jean-Philippe Lang 71c83e1155 Adds functional tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8954 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 15:41:29 +00:00
Jean-Philippe Lang 0bb9579088 Adds required fixtures back.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8952 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 15:23:58 +00:00
Jean-Philippe Lang c49ef8e543 Adds functional tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8948 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 14:39:55 +00:00
Jean-Philippe Lang e6a64aa00b Adds functional tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 14:26:30 +00:00
Jean-Philippe Lang 0f721f6f7b Adds functional tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8945 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 14:18:54 +00:00
Jean-Philippe Lang 7e347069d5 Better message for file size validation error.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8937 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 12:18:10 +00:00
Toshi MARUYAMA 9774782cab Rails3: test: scm: mercurial: use "repository_path_hash" for path param
Rails3 new route format returns path param as string not array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8936 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 12:18:03 +00:00
Toshi MARUYAMA 844d904426 Rails3: test: scm: darcs: use "repository_path_hash" for path param
Rails3 new route format returns path param as string not array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8935 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 12:17:32 +00:00
Toshi MARUYAMA 5033a155b3 Rails3: test: scm: subversion: use "repository_path_hash" for path param
Rails3 new route format returns path param as string not array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8930 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 10:10:48 +00:00
Jean-Philippe Lang 77626ef6fb Adds support for adding attachments to issues through the REST API (#8171).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8928 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 10:01:16 +00:00
Toshi MARUYAMA d086683b17 Rails3: test: scm: bazaar: use "repository_path_hash" for path param
Rails3 new route format returns path param as string not array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8927 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 08:49:05 +00:00
Toshi MARUYAMA 00ec4e189f Rails3: test: scm: cvs: use "repository_path_hash" for path param
Rails3 new route format returns path param as string not array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8926 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 07:33:44 +00:00
Toshi MARUYAMA 1e7340b448 Rails3: test: scm: filesystem: use "repository_path_hash" for path param
Rails3 new route format returns path param as string not array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8925 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 06:12:44 +00:00
Toshi MARUYAMA 08811bd259 Rails3: test: scm: git: use "repository_path_hash" for path param
Rails3 new route format returns path param as string not array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8924 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 06:12:22 +00:00
Toshi MARUYAMA 21cb2ee817 Rails3: test: scm: move "repository_path_hash" method in repositories routing test to test_helper.rb for common use
Rails3 new route format returns path param as string not array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8923 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-23 06:11:59 +00:00
Toshi MARUYAMA f5c4607769 use English as default language at "test_reminders_should_not_include_closed_issues" of unit mailer test
On Rails 3.1.3, test fails and output is not English.

<pre>
Error: test_reminders_should_not_include_closed_issues(MailerTest)
ActiveRecord::RecordInvalid: Validation failed: Tracker non è incluso nella lista
test/unit/mailer_test.rb:459:in `test_reminders_should_not_include_closed_issues'
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8918 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-22 03:28:42 +00:00
Jean-Philippe Lang 77287d1f0b Fixed magic link in the note added when closing an issue by a commit from a subproject (#10284).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8917 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-20 21:58:57 +00:00
Toshi MARUYAMA 5b48e4ae58 use assert_select instead of include? at "test_register" of unit mailer test
On Rails 3.0.11, token breaks with new line.
So, test fails.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8916 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-20 14:36:43 +00:00
Jean-Philippe Lang a9161a3fde Don't use auth_sources fixtures when not needed.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8915 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-19 21:51:03 +00:00
Jean-Philippe Lang 148bc9448b Fixed a test that writes into fixtures directory.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8914 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-19 21:42:09 +00:00
Jean-Philippe Lang dedfdefcf3 Disabled on the fly registration for auth_source fixture.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8913 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-19 21:39:29 +00:00
Jean-Philippe Lang 3e3d7c8d4f Friendly response when the LDAP connection fails.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8911 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-19 18:13:46 +00:00
Jean-Philippe Lang 37575f27fe Do not recognize invalid textile attributes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8902 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-17 22:31:01 +00:00
Toshi MARUYAMA 421db739c5 scm: git: replace "write_attribute" at unit model test for database order consistency (#5357)
On Rails 3.0.11, "NoMethodError: private method `write_attribute'" error raises.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8899 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-17 14:28:08 +00:00
Toshi MARUYAMA ff65babd1c scm: git: replace "order" at unit model test of fetching from scratch (#5357)
On Rails 3.0.11, this test fails.
Revision order of Git and Mercurial is not date/time order.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8898 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-17 14:27:52 +00:00
Jean-Philippe Lang b455ac2a27 Adds a rake test that removes old unattached uploads (#10253).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8893 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-16 21:18:01 +00:00