Toshi MARUYAMA
f0987e4b8f
scm: git: backout r8839 ( #8857 )
...
call "git log" only once instead of per branch in fetching revisions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9142 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-07 05:57:44 +00:00
Jean-Philippe Lang
6aad82e524
Fixed that the proposed users list may be empty when adding a project member ( #10374 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9128 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-06 18:37:30 +00:00
Jean-Philippe Lang
aa9238912b
Changed assertions to make them work with Rails2/3 ruby1.8/1.9 different behaviours.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9108 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-05 11:03:26 +00:00
Jean-Philippe Lang
97ca65d1b2
Changed assertions to make them work with Rails2/3 ruby1.8/1.9 different behaviours.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9107 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-05 10:55:19 +00:00
Jean-Philippe Lang
d4372ab747
Array#to_s behaviour changed in ruby 1.9.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9106 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-05 10:49:05 +00:00
Jean-Philippe Lang
9bb056e54d
Array#to_s behaviour changed in ruby 1.9.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9105 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-05 10:47:04 +00:00
Jean-Philippe Lang
5803bf9fc4
Strip login and password read from the email body.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9093 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 14:08:19 +00:00
Jean-Philippe Lang
df89c24e37
Adds an helper to get the body of an email in tests.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9092 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 14:01:54 +00:00
Jean-Philippe Lang
67d52acb84
Rails 3.1 compatibility.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9091 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 13:55:25 +00:00
Jean-Philippe Lang
fa12fad4f2
Include ERB::Util in helpers tests.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9090 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 13:53:38 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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