Jean-Philippe Lang
ab066317e6
Adds STI to Query model. Issue queries are now IssueQuery instances.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10964 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-09 14:10:49 +00:00
Jean-Philippe Lang
e821020394
Make the tests pass when config.threadsafe! is enabled ( #12097 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10910 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-02 18:07:35 +00:00
Jean-Philippe Lang
14e56006a1
Fixed that #extract_macro_options should not be greedy ( #12451 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10885 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-11-27 19:59:33 +00:00
Jean-Philippe Lang
a49de1c39d
Cache languages names to avoid loading all translations files.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10844 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-11-18 18:01:24 +00:00
Jean-Philippe Lang
4bd1e887d9
Makes Plugin#requires_redmine accept a range of versions ( #12299 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10827 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-11-17 10:55:38 +00:00
Jean-Philippe Lang
b3cf67cad4
Makes Plugin#requires_redmine accept only major and minor version ( #12299 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10826 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-11-17 10:07:21 +00:00
Jean-Philippe Lang
19bd857790
Rewrites requires_redmine tests.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10825 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-11-17 09:54:56 +00:00
Jean-Baptiste Barth
0beef88850
Fixed some more test/unit/*_test.rb breaking when run alone ( #12285 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10786 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-11-01 22:47:25 +00:00
Jean-Philippe Lang
b71355f10b
Ignore non-working days when rescheduling an issue ( #2161 ).
...
Weekly non-working days can be configured in application settings (set to saturday and sunday by default).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10747 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-29 10:06:30 +00:00
Toshi MARUYAMA
123d2b318f
fix scm_iconv local variable name ( #12228 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10741 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-28 07:12:23 +00:00
Jean-Philippe Lang
d29fa4735b
Adds a macro for inserting collapsed text ( #12167 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10680 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-20 14:49:32 +00:00
Jean-Philippe Lang
43da05f3cb
Set proper locale.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10629 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-13 08:22:49 +00:00
Jean-Philippe Lang
6c3e38c4c0
Tests cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10628 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-13 08:21:18 +00:00
Jean-Philippe Lang
8bde60dc56
Remove Issue.generate_for_project! test helper and use Issue.generate! instead.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10611 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-12 08:39:22 +00:00
Toshi MARUYAMA
c91ce512a9
fix number_to_currency() raises exception on Rails3 bs and de locale ( #11922 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10476 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-26 08:45:39 +00:00
Toshi MARUYAMA
37351ddecc
remove empty setup method from test/unit/lib/redmine/unified_diff_test.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10430 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-19 03:02:17 +00:00
Toshi MARUYAMA
f18edc4e1c
use git diff format for all diff ( #11868 )
...
Mercurial diff uses git format.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10428 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-19 02:29:11 +00:00
Toshi MARUYAMA
01e2472c92
scm: bazaar: add entry test to unit lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10411 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-17 10:41:59 +00:00
Toshi MARUYAMA
2da70de1a7
scm: git: add entry test to unit lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10410 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-17 10:41:33 +00:00
Toshi MARUYAMA
55748b6fc0
scm: bazaar: add revisions test to unit lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10408 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-17 07:58:05 +00:00
Jean-Philippe Lang
747e4ecd3a
Adds a "depth" option to the child_pages macro ( #10789 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10401 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-16 15:24:35 +00:00
Toshi MARUYAMA
17db2dca3d
scm: mercurial: add test of diff from new to old revision to unit lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10390 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-16 08:51:19 +00:00
Toshi MARUYAMA
3cd15102c6
scm: bazaar: add diff test to unit lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10389 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-16 08:50:55 +00:00
Toshi MARUYAMA
c2b12d853f
scm: git: remove unnecessary encoding header from unit adapter test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10385 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-15 15:42:14 +00:00
Toshi MARUYAMA
67cdaabe6f
scm: git: change test author encoding in unit adapter test to ASCII-8BIT
...
Author encoding in adapter is ASCII-8BIT.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10384 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-15 15:41:47 +00:00
Toshi MARUYAMA
c70bc540dd
add copyright statement to test/unit/lib/redmine/scm/adapters/*.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10378 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-14 21:40:45 +00:00
Toshi MARUYAMA
2461d12388
gantt: remove redundant empty lines from unit gantt helper test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-11 02:58:59 +00:00
Jean-Philippe Lang
8b72710d7e
Fixed: New multi-line macros regexp is too eager ( #11736 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10276 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-02 10:24:56 +00:00
Toshi MARUYAMA
935d8e594b
add missing fixtures to test/unit/lib/redmine/hook_test.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10256 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-01 03:47:20 +00:00
Toshi MARUYAMA
374a0cc7cb
add missing fixture to test/unit/lib/redmine/safe_attributes_test.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10255 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-01 02:55:13 +00:00
Jean-Philippe Lang
fc3a09e49a
Let macros optionally accept a block of text ( #3061 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10210 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-08-18 08:25:22 +00:00
Jean-Philippe Lang
73aece0baf
Macros processing overhaul ( #3061 , #11633 ).
...
* macro arguments are no longer parsed by text formatters
* macro output is escaped unless it's html safe
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10209 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-08-17 14:46:55 +00:00
Jean-Philippe Lang
3119d1996c
Use abbr_day_name to get the first letter of the day name ( #9839 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10202 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-08-13 18:13:10 +00:00
Jean-Philippe Lang
b907398788
Slight change to the macro regexp.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10178 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-08-08 18:54:01 +00:00
Jean-Philippe Lang
e2d6f0af4e
Adds an option to macro definition to disable arguments parsing ( #11578 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10174 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-08-08 16:28:33 +00:00
Jean-Philippe Lang
8088749f10
Fixed tests broken by r10088.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10089 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-28 14:59:36 +00:00
Toshi MARUYAMA
dadd294a25
code layout cleanup test/unit/lib/redmine/helpers/gantt_test.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10063 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-21 08:08:06 +00:00
Jean-Philippe Lang
537be80be2
Adds a macro for inserting thumbnails in formatted text ( #3510 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-16 17:15:40 +00:00
Jean-Philippe Lang
ac56c0c99c
Ability to close projects (read-only) ( #3640 ).
...
A new permission (Close/reopen project) is available to give non-admin users the ability to close their projects.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9883 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-25 17:49:35 +00:00
Toshi MARUYAMA
9c060fe33a
scm: git: fix unable to run unit lib test if git binary is not available on Windows
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9870 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-18 23:57:27 +00:00
Toshi MARUYAMA
b93e040bb8
fix unit test fails on Ruby 1.8 and JRuby ( #2190 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9850 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-17 09:34:12 +00:00
Etienne Massip
dbdc9b9da7
Display dates using user's locale if available ( #2190 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9838 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-16 21:45:47 +00:00
Jean-Philippe Lang
965ef33192
Fixed that lines with spaces only before headings break wiki section extraction ( #11133 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9822 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-11 17:51:14 +00:00
Jean-Philippe Lang
d21bacb01d
Fixed that content_for does not work in Hook.render_on ( #11105 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9785 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-09 09:19:15 +00:00
Jean-Philippe Lang
7fba8bc682
Change in Rails' for handling localized number precision ( #11118 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9782 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-09 07:46:07 +00:00
Toshi MARUYAMA
ba25d27e3a
scm: git: skip Latin-1 path tests on Git for Windows above 1.7.10
...
Git for Windows (msysGit) changed internal API from ANSI to Unicode in 1.7.10.
http://code.google.com/p/msysgit/issues/detail?id=80
So, Latin-1 path tests fail on Japanese Windows
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9750 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-02 18:36:23 +00:00
Toshi MARUYAMA
7af8d7caf0
replace Mailer deliver syntax to Rails3 style
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9638 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-05-05 13:07:12 +00:00
Jean-Philippe Lang
ba5a052c8c
Copyright update.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-05-05 12:56:53 +00:00
Jean-Philippe Lang
5b680625c1
Adds a simple script/about.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9601 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-05-01 11:41:15 +00:00
Jean-Philippe Lang
f12942ff40
Make sure that "today" does not change during tests.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9557 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-27 23:53:34 +00:00