]> source.dussan.org Git - redmine.git/log
redmine.git
12 years agoRenamed Mailer#test to Mailer#test_email.
Jean-Philippe Lang [Sun, 4 Mar 2012 12:38:34 +0000 (12:38 +0000)]
Renamed Mailer#test to Mailer#test_email.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9080 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRemoved some generate! calls.
Jean-Philippe Lang [Sun, 4 Mar 2012 12:29:52 +0000 (12:29 +0000)]
Removed some generate! calls.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9079 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRemoved some generate! calls.
Jean-Philippe Lang [Sun, 4 Mar 2012 12:15:57 +0000 (12:15 +0000)]
Removed some generate! calls.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9078 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoNo need to save the record.
Jean-Philippe Lang [Sun, 4 Mar 2012 12:03:59 +0000 (12:03 +0000)]
No need to save the record.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9077 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse :joins instead of :include.
Jean-Philippe Lang [Sun, 4 Mar 2012 11:54:52 +0000 (11:54 +0000)]
Use :joins instead of :include.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9076 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRemoved sort order on issues association.
Jean-Philippe Lang [Sun, 4 Mar 2012 11:53:15 +0000 (11:53 +0000)]
Removed sort order on issues association.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9075 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails 3.1 compatibility.
Jean-Philippe Lang [Sun, 4 Mar 2012 11:45:15 +0000 (11:45 +0000)]
Rails 3.1 compatibility.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9074 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails 3.1 compatibility.
Jean-Philippe Lang [Sun, 4 Mar 2012 11:41:10 +0000 (11:41 +0000)]
Rails 3.1 compatibility.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9073 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoset svn:eol-style native test/exemplars/version_exemplar.rb
Toshi MARUYAMA [Sun, 4 Mar 2012 11:08:32 +0000 (11:08 +0000)]
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

12 years agoAdds Redmine::Utils.random_hex for generating a random hex string.
Jean-Philippe Lang [Sun, 4 Mar 2012 11:05:02 +0000 (11:05 +0000)]
Adds Redmine::Utils.random_hex for generating a random hex string.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9071 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoset svn:eol-style native lib/tasks/migrate_plugins.rake
Toshi MARUYAMA [Sun, 4 Mar 2012 11:00:28 +0000 (11:00 +0000)]
set svn:eol-style native lib/tasks/migrate_plugins.rake

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9070 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoset svn:eol-style native lib/tasks/migrate_from_mantis.rake
Toshi MARUYAMA [Sun, 4 Mar 2012 10:55:12 +0000 (10:55 +0000)]
set svn:eol-style native lib/tasks/migrate_from_mantis.rake

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9069 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoset svn:eol-style native lib/tasks/load_default_data.rake
Toshi MARUYAMA [Sun, 4 Mar 2012 10:45:33 +0000 (10:45 +0000)]
set svn:eol-style native lib/tasks/load_default_data.rake

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9068 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails 3.1 compatibility.
Jean-Philippe Lang [Sun, 4 Mar 2012 10:44:59 +0000 (10:44 +0000)]
Rails 3.1 compatibility.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9067 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoset svn:eol-style native lib/tasks/fetch_changesets.rake
Toshi MARUYAMA [Sun, 4 Mar 2012 10:35:28 +0000 (10:35 +0000)]
set svn:eol-style native lib/tasks/fetch_changesets.rake

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9066 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoAdds Redmine::Plugin.public_directory to be used instead of Engines.public_directory.
Jean-Philippe Lang [Sun, 4 Mar 2012 10:29:47 +0000 (10:29 +0000)]
Adds Redmine::Plugin.public_directory to be used instead of Engines.public_directory.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9065 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoset svn:eol-style native lib/tasks/email.rake
Toshi MARUYAMA [Sun, 4 Mar 2012 10:24:01 +0000 (10:24 +0000)]
set svn:eol-style native lib/tasks/email.rake

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9064 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoExtracted auto_link and auto_mailto to a module.
Jean-Philippe Lang [Sun, 4 Mar 2012 10:04:46 +0000 (10:04 +0000)]
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

12 years agoUse regular create! instead of generate!
Jean-Philippe Lang [Sat, 3 Mar 2012 19:47:20 +0000 (19:47 +0000)]
Use regular create! instead of generate!

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9062 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRemoves all #verify calls in controllers. Verification is handled at routing level...
Jean-Philippe Lang [Sat, 3 Mar 2012 15:09:20 +0000 (15:09 +0000)]
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

12 years agoRemoved obsolete demo environment file.
Jean-Philippe Lang [Sat, 3 Mar 2012 12:43:59 +0000 (12:43 +0000)]
Removed obsolete demo environment file.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9060 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse require instead of require_library_or_gem.
Jean-Philippe Lang [Sat, 3 Mar 2012 12:41:23 +0000 (12:41 +0000)]
Use require instead of require_library_or_gem.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9059 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoAdds a test for displaying list custom fields on the new issue form.
Jean-Philippe Lang [Fri, 2 Mar 2012 16:57:57 +0000 (16:57 +0000)]
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

12 years agoUse a single query to retrieve issues on the roadmap.
Jean-Philippe Lang [Fri, 2 Mar 2012 16:27:14 +0000 (16:27 +0000)]
Use a single query to retrieve issues on the roadmap.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9057 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse a single query to retrieve issues_count, open_issues_count and closed_issues_count.
Jean-Philippe Lang [Fri, 2 Mar 2012 16:26:06 +0000 (16:26 +0000)]
Use a single query to retrieve issues_count, open_issues_count and closed_issues_count.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9056 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse #issues_count which is already retrieved.
Jean-Philippe Lang [Fri, 2 Mar 2012 16:23:10 +0000 (16:23 +0000)]
Use #issues_count which is already retrieved.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9055 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoAdds a test for when updating a news fails.
Jean-Philippe Lang [Fri, 2 Mar 2012 11:43:33 +0000 (11:43 +0000)]
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

12 years agoAdds functional test for #test_connection.
Jean-Philippe Lang [Fri, 2 Mar 2012 11:31:44 +0000 (11:31 +0000)]
Adds functional test for #test_connection.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9053 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoAdds functional tests for LdapAuthSourcesController.
Jean-Philippe Lang [Fri, 2 Mar 2012 11:25:19 +0000 (11:25 +0000)]
Adds functional tests for LdapAuthSourcesController.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9052 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed DarcsAdapter for ruby 1.9.3.
Jean-Philippe Lang [Fri, 2 Mar 2012 08:40:41 +0000 (08:40 +0000)]
Fixed DarcsAdapter for ruby 1.9.3.

Unlike 1.8 and 1.9.2, Entries#compact returns an Array with 1.9.3, instead of an Entries object, resulting in a "undefined method `sort_by_name'" error.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9051 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse valid filters in #test_index_with_sort_filters.
Jean-Philippe Lang [Fri, 2 Mar 2012 07:38:43 +0000 (07:38 +0000)]
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

12 years agoPrevent test:scm:setup:* task to overwrite if the test repository already exists.
Jean-Philippe Lang [Thu, 1 Mar 2012 21:01:37 +0000 (21:01 +0000)]
Prevent test:scm:setup:* task to overwrite if the test repository already exists.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9049 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRemoved obsolete helper empty test class.
Jean-Philippe Lang [Thu, 1 Mar 2012 20:46:06 +0000 (20:46 +0000)]
Removed obsolete helper empty test class.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9048 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRandom test failures in #test_..._if_an_exception_is_raised with ruby1.8.7-p358 and...
Jean-Philippe Lang [Thu, 1 Mar 2012 20:34:41 +0000 (20:34 +0000)]
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

12 years agoFixed that the bulk edit/copy form does not propose versions and categories for the...
Jean-Philippe Lang [Thu, 1 Mar 2012 20:22:08 +0000 (20:22 +0000)]
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

12 years agoFixes LDAP test.
Jean-Philippe Lang [Thu, 1 Mar 2012 19:47:03 +0000 (19:47 +0000)]
Fixes LDAP test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9045 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoAdds an optional LDAP filter (#1060).
Jean-Philippe Lang [Thu, 1 Mar 2012 16:26:10 +0000 (16:26 +0000)]
Adds an optional LDAP filter (#1060).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9044 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoMailHandler: fixed that sender's fullname is not unquoted (#10334).
Jean-Philippe Lang [Thu, 1 Mar 2012 15:32:34 +0000 (15:32 +0000)]
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

12 years agoback out from r9031 to r9036
Toshi MARUYAMA [Thu, 1 Mar 2012 11:40:22 +0000 (11:40 +0000)]
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

12 years agoRails3: test: add .to_s for mail's bodies check at unit/mailer_test.rb
Toshi MARUYAMA [Thu, 1 Mar 2012 08:10:27 +0000 (08:10 +0000)]
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

12 years agoRails3: test: add .to_s for mail's bodies check at unit/repository_test.rb
Toshi MARUYAMA [Thu, 1 Mar 2012 08:09:35 +0000 (08:09 +0000)]
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

12 years agoRails3: test: add .to_s for mail's bodies check at functional/users_controller_test.rb
Toshi MARUYAMA [Thu, 1 Mar 2012 08:08:58 +0000 (08:08 +0000)]
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

12 years agoRails3: test: add .to_s for mail's bodies check at functional/messages_controller_test.rb
Toshi MARUYAMA [Thu, 1 Mar 2012 08:08:25 +0000 (08:08 +0000)]
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

12 years agoRails3: test: add .to_s for mail's bodies check at functional/issues_controller_test.rb
Toshi MARUYAMA [Thu, 1 Mar 2012 08:07:41 +0000 (08:07 +0000)]
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

12 years agoRails3: test: add .to_s for mail's bodies check at functional/files_controller_test.rb
Toshi MARUYAMA [Thu, 1 Mar 2012 08:07:10 +0000 (08:07 +0000)]
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

12 years agoFixes r9029.
Jean-Philippe Lang [Tue, 28 Feb 2012 06:27:23 +0000 (06:27 +0000)]
Fixes r9029.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9030 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoImplements the behaviour expected in user_test.
Jean-Philippe Lang [Tue, 28 Feb 2012 05:46:33 +0000 (05:46 +0000)]
Implements the behaviour expected in user_test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9029 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed potential test failure.
Jean-Philippe Lang [Tue, 28 Feb 2012 05:35:33 +0000 (05:35 +0000)]
Fixed potential test failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9028 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed potential test failure.
Jean-Philippe Lang [Tue, 28 Feb 2012 05:33:46 +0000 (05:33 +0000)]
Fixed potential test failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9027 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed potential test failure.
Jean-Philippe Lang [Tue, 28 Feb 2012 05:29:36 +0000 (05:29 +0000)]
Fixed potential test failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9026 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed potential test failure.
Jean-Philippe Lang [Tue, 28 Feb 2012 05:25:26 +0000 (05:25 +0000)]
Fixed potential test failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9025 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed potential test failure.
Jean-Philippe Lang [Tue, 28 Feb 2012 05:25:04 +0000 (05:25 +0000)]
Fixed potential test failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9024 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoMailer#url_for not called in views with Rails 3.1.
Jean-Philippe Lang [Mon, 27 Feb 2012 20:43:25 +0000 (20:43 +0000)]
Mailer#url_for not called in views with Rails 3.1.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9023 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoOverride @#url_for@ in AM to force generation of absolute links (#10251).
Etienne Massip [Mon, 27 Feb 2012 18:42:03 +0000 (18:42 +0000)]
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

12 years agoFixed routing failure with jruby 1.6.
Jean-Philippe Lang [Mon, 27 Feb 2012 18:35:10 +0000 (18:35 +0000)]
Fixed routing failure with jruby 1.6.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9021 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoAdds a test for project menu item when displaying a revision.
Jean-Philippe Lang [Mon, 27 Feb 2012 15:26:35 +0000 (15:26 +0000)]
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

12 years agoAdds a test for when displaying the new message form on boards#show.
Jean-Philippe Lang [Mon, 27 Feb 2012 15:11:50 +0000 (15:11 +0000)]
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

12 years agoUse controller_name and action_name instead of params.
Jean-Philippe Lang [Sun, 26 Feb 2012 19:20:37 +0000 (19:20 +0000)]
Use controller_name and action_name instead of params.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9018 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoAdds a helper for displaying validation error messages.
Jean-Philippe Lang [Sun, 26 Feb 2012 18:07:13 +0000 (18:07 +0000)]
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

12 years agoRails3: scm: cvs: fix error of test_fetch_changesets_incremental at unit model test
Toshi MARUYAMA [Sun, 26 Feb 2012 14:09:21 +0000 (14:09 +0000)]
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

12 years agoRails 3.1 compatibility (order declared on association takes precedence).
Jean-Philippe Lang [Sun, 26 Feb 2012 13:05:19 +0000 (13:05 +0000)]
Rails 3.1 compatibility (order declared on association takes precedence).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9015 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoMoved tests about session reset to functional tests.
Jean-Philippe Lang [Sun, 26 Feb 2012 12:00:41 +0000 (12:00 +0000)]
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

12 years agoMake sure that projects_to_search is a Project Array.
Jean-Philippe Lang [Sun, 26 Feb 2012 11:42:29 +0000 (11:42 +0000)]
Make sure that projects_to_search is a Project Array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9013 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoremove trailing white-spaces from app/models/attachment.rb
Toshi MARUYAMA [Sun, 26 Feb 2012 10:16:09 +0000 (10:16 +0000)]
remove trailing white-spaces from app/models/attachment.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9012 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails3: html_safe for project_tree_options_for_select method in application helper
Toshi MARUYAMA [Sun, 26 Feb 2012 07:10:54 +0000 (07:10 +0000)]
Rails3: html_safe for project_tree_options_for_select method in application helper

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9011 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoremove trailing white-spaces from vendor/plugins/acts_as_watchable/lib/acts_as_watcha...
Toshi MARUYAMA [Sun, 26 Feb 2012 04:28:12 +0000 (04:28 +0000)]
remove trailing white-spaces from vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9010 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRewrite test without shoulda macros.
Jean-Philippe Lang [Sat, 25 Feb 2012 20:47:23 +0000 (20:47 +0000)]
Rewrite test without shoulda macros.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9009 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRemoved assertions on blank template.
Jean-Philippe Lang [Sat, 25 Feb 2012 20:42:31 +0000 (20:42 +0000)]
Removed assertions on blank template.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9008 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails 3.1 compatibility.
Jean-Philippe Lang [Sat, 25 Feb 2012 16:33:00 +0000 (16:33 +0000)]
Rails 3.1 compatibility.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9007 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails 3.1 compatibility.
Jean-Philippe Lang [Sat, 25 Feb 2012 16:31:13 +0000 (16:31 +0000)]
Rails 3.1 compatibility.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9006 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails 3.1 compatibility.
Jean-Philippe Lang [Sat, 25 Feb 2012 15:23:20 +0000 (15:23 +0000)]
Rails 3.1 compatibility.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9005 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails 3.1 compatibility.
Jean-Philippe Lang [Sat, 25 Feb 2012 15:20:28 +0000 (15:20 +0000)]
Rails 3.1 compatibility.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9004 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUpdated Ruby required version.
Etienne Massip [Sat, 25 Feb 2012 13:26:51 +0000 (13:26 +0000)]
Updated Ruby required version.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9003 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoCode cleanup.
Jean-Philippe Lang [Sat, 25 Feb 2012 13:04:34 +0000 (13:04 +0000)]
Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9002 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoCan not use Project#find on scopes with Rails 3.1.
Jean-Philippe Lang [Sat, 25 Feb 2012 12:57:30 +0000 (12:57 +0000)]
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

12 years agoUse content_tag for empty option.
Jean-Philippe Lang [Sat, 25 Feb 2012 12:37:28 +0000 (12:37 +0000)]
Use content_tag for empty option.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9000 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoClean up assertion.
Jean-Philippe Lang [Sat, 25 Feb 2012 12:35:22 +0000 (12:35 +0000)]
Clean up assertion.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8999 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoPreserve xml output with Rails 3.1.
Jean-Philippe Lang [Sat, 25 Feb 2012 12:19:56 +0000 (12:19 +0000)]
Preserve xml output with Rails 3.1.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8998 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUndefined #builtin= with Rails 3.1.3.
Jean-Philippe Lang [Sat, 25 Feb 2012 11:48:29 +0000 (11:48 +0000)]
Undefined #builtin= with Rails 3.1.3.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8997 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed migration broken with Rails 3.1.3 (#10320).
Jean-Philippe Lang [Sat, 25 Feb 2012 11:46:19 +0000 (11:46 +0000)]
Fixed migration broken with Rails 3.1.3 (#10320).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8996 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoYAML files parsing issues.
Jean-Philippe Lang [Sat, 25 Feb 2012 11:33:30 +0000 (11:33 +0000)]
YAML files parsing issues.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8995 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed escaping issue with Rails 3.1.
Jean-Philippe Lang [Sat, 25 Feb 2012 11:06:14 +0000 (11:06 +0000)]
Fixed escaping issue with Rails 3.1.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8994 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse content_tag for empty option.
Jean-Philippe Lang [Sat, 25 Feb 2012 11:04:38 +0000 (11:04 +0000)]
Use content_tag for empty option.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8993 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoAdds missing format parameter.
Jean-Philippe Lang [Sat, 25 Feb 2012 10:41:22 +0000 (10:41 +0000)]
Adds missing format parameter.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8992 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoDo not do assertions on mail class.
Jean-Philippe Lang [Sat, 25 Feb 2012 09:58:23 +0000 (09:58 +0000)]
Do not do assertions on mail class.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8991 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed escaping issue with Rails 3.1.
Jean-Philippe Lang [Sat, 25 Feb 2012 09:37:18 +0000 (09:37 +0000)]
Fixed escaping issue with Rails 3.1.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8990 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse content_tag for "no change" options.
Jean-Philippe Lang [Sat, 25 Feb 2012 09:29:56 +0000 (09:29 +0000)]
Use content_tag for "no change" options.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8989 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails3: prevent double rendering file view and annotate on Rails 3.0.11 and Rails...
Toshi MARUYAMA [Sat, 25 Feb 2012 06:01:48 +0000 (06:01 +0000)]
Rails3: prevent double rendering file view and annotate on Rails 3.0.11 and Rails 3.1.3

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8988 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails3: test: fix ordering functional/comments_controller_test.rb
Toshi MARUYAMA [Sat, 25 Feb 2012 01:43:11 +0000 (01:43 +0000)]
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

12 years agoFixed Version#issues_progress for Rails 3.1.
Jean-Philippe Lang [Sat, 25 Feb 2012 00:07:09 +0000 (00:07 +0000)]
Fixed Version#issues_progress for Rails 3.1.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8986 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoFixed escaping issues in #textilizable with Rails 3.1.
Jean-Philippe Lang [Sat, 25 Feb 2012 00:00:58 +0000 (00:00 +0000)]
Fixed escaping issues in #textilizable with Rails 3.1.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8985 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoReplace auto_link with link_to in email templates.
Jean-Philippe Lang [Fri, 24 Feb 2012 23:16:59 +0000 (23:16 +0000)]
Replace auto_link with link_to in email templates.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8984 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse fixture.
Jean-Philippe Lang [Fri, 24 Feb 2012 21:24:00 +0000 (21:24 +0000)]
Use fixture.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8983 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse :joins instead of :include.
Jean-Philippe Lang [Fri, 24 Feb 2012 18:55:09 +0000 (18:55 +0000)]
Use :joins instead of :include.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8982 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoPotential test failure fixed.
Jean-Philippe Lang [Fri, 24 Feb 2012 18:43:35 +0000 (18:43 +0000)]
Potential test failure fixed.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8981 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRound hours when reading TimeEntry attribute.
Jean-Philippe Lang [Fri, 24 Feb 2012 18:40:22 +0000 (18:40 +0000)]
Round hours when reading TimeEntry attribute.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8980 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoCleanup instance variables when reloading a project.
Jean-Philippe Lang [Fri, 24 Feb 2012 18:38:05 +0000 (18:38 +0000)]
Cleanup instance variables when reloading a project.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8979 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRemoved useless option.
Jean-Philippe Lang [Fri, 24 Feb 2012 18:27:38 +0000 (18:27 +0000)]
Removed useless option.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8978 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoUse subclasses method instead of class variable.
Jean-Philippe Lang [Fri, 24 Feb 2012 18:23:58 +0000 (18:23 +0000)]
Use subclasses method instead of class variable.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8977 e93f8b46-1217-0410-a6f0-8f06a7374b81

12 years agoRails3: scm: mercurial: use .to_s for overriding human_attribute_name parameter
Toshi MARUYAMA [Fri, 24 Feb 2012 14:59:54 +0000 (14:59 +0000)]
Rails3: scm: mercurial: use .to_s for overriding human_attribute_name parameter

On Rails 3.0.11, parameter is symbol not string in activerecord validation.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8976 e93f8b46-1217-0410-a6f0-8f06a7374b81