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
Jean-Philippe Lang
c7d78ef094
Fixed gantt_test, Date.today and 0.day.from_now may not be the same depending on time and time zone.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9556 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-27 23:50:56 +00:00
Toshi MARUYAMA
6fcea5ef9d
scm: git: fix test revision value of unit lib test
...
Hash value range is from 0 to 9 and a to f
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9541 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-27 01:33:04 +00:00
Toshi MARUYAMA
d19a7dee42
add fixtures to test/unit/lib/redmine/helpers/gantt_test.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9540 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-27 00:55:37 +00:00
Jean-Philippe Lang
5e57a1a9d9
Merged rails-3.2 branch.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-25 17:17:49 +00:00
Jean-Philippe Lang
0fad78f53f
Removed Query.generate_default! helper.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9472 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-22 12:46:43 +00:00
Jean-Philippe Lang
b960470d78
Removed object_daddy dependency.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9469 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-22 11:56:47 +00:00
Jean-Philippe Lang
2cc294aa27
Fixed that textile nested lists are not properly closed in output ( #10642 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9430 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-18 12:00:54 +00:00
Jean-Philippe Lang
fec3e6c84b
Fixed: ruby 1.9.3 Time Zone setting Internal error ( #10442 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9244 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-17 12:49:47 +00:00
Toshi MARUYAMA
ae5edac243
remove hard-coded non ASCII literal from unit git lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-14 01:15:41 +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
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
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
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
Jean-Philippe Lang
6aae25209a
Fixed that partial diffs are done against html instead of original code ( #9143 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8876 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-15 17:39:47 +00:00
Jean-Philippe Lang
0ede069d2c
Allows custom styles in textile formatting using a white list of styles ( #2416 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8860 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-12 14:00:43 +00:00
Toshi MARUYAMA
2fa19441a7
scm: git: use default branch from HEAD ( #10207 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-12 06:22:59 +00:00
Toshi MARUYAMA
804482ef2b
scm: git: update test repository ( #10207 )
...
New "master-20120212" branch is added.
Git branch is the reference to the specific revision.
This branch points the same revision with "master" branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8855 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-12 06:22:33 +00:00
Toshi MARUYAMA
d90cdb1b10
scm: git: raise exception if "git log" is error and block is given in lib revision method ( #8857 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-10 22:56:54 +00:00
Toshi MARUYAMA
c94426d21e
scm: git: add explicit :excludes option to calling revision method in "test_revisions_includes_master_two_revs_from_origin" of unit lib test ( #8857 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8822 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-09 15:07:11 +00:00
Toshi MARUYAMA
7f70d2faaa
scm: git: add test of get revisions from disjointed histories to unit lib test ( #8857 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8821 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-09 08:34:24 +00:00
Toshi MARUYAMA
e34dab7443
scm: git: update test repository ( #8857 )
...
New disjointed history revisions are added.
This test repository has two origins.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8820 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-09 08:20:37 +00:00
Toshi MARUYAMA
a9ad2a4dcc
scm: git: remove redundant comma from test_revisions_includes_master_two_revs_from_origin of unit lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8819 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-09 07:39:27 +00:00
Toshi MARUYAMA
f4de82510a
scm: git: code cleanup "test_branches" of unit lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8818 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-09 06:43:42 +00:00
Toshi MARUYAMA
19909bc4c8
scm: git: add lib test to get master branch revisions from origin ( #8857 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8817 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-09 06:05:10 +00:00
Toshi MARUYAMA
34b3a9851f
scm: git: add includes and excludes options to lib revisions method ( #8857 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8815 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-08 23:38:35 +00:00
Toshi MARUYAMA
f319409abc
scm: git: remove unused "--all" option of "git log" in lib revisions method
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8813 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-08 03:18:20 +00:00
Toshi MARUYAMA
40a37b194d
scm: git: use explicit "master" instead of all for revisions method at unit lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8812 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-08 03:04:03 +00:00
Toshi MARUYAMA
186abba94b
code layout cleanup test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8811 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-08 03:03:39 +00:00
Toshi MARUYAMA
1489623584
scm: git: remove "test_getting_certain_revisions" from unit lib test
...
Redmine does not use '899a15d^' syntax.
This test is covered by "test_revisions_master_merged_rev".
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8809 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-07 15:40:56 +00:00
Jean-Philippe Lang
0c5af16e14
Support for nested array in API builder.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8720 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-29 18:29:09 +00:00
Jean-Philippe Lang
610a92c4d1
Moved test from ApplicationControllerTest.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8485 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-03 17:48:18 +00:00
Toshi MARUYAMA
3fbbd6bc50
fix filename of test/unit/lib/redmine/wiki_formatting.rb
...
"rake test:units" runs following command
<pre>
"rake test:units" runs '/usr/bin/ruby -I"lib:test"
-I"/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib"
"/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/rake_test_loader.rb"
"test/unit/**/*_test.rb"'
</pre>
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8316 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 03:53:35 +00:00
Toshi MARUYAMA
6c7ead508f
test: include ERB::Util at test/unit/lib/redmine/helpers/gantt_test.rb
...
On Rails 3.1, undefined method `h' error raises.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8314 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-22 11:05:23 +00:00
Jean-Philippe Lang
b549523e4b
Test cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8280 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 10:14:14 +00:00
Jean-Philippe Lang
aadf6da468
Get rid of HelperTestcase.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8278 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 09:40:19 +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
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
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
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
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
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
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
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
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
Jean-Philippe Lang
9f15517095
Fixed: Angle brackets within 'pre' blocks are silently replaced by HTML entities during wiki section-edit ( #9673 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7969 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-28 17:56:50 +00:00
Toshi MARUYAMA
f936b7b5a4
pdf: lib: add the method to return attachment from filename and encoding ( #3261 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7912 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-24 09:43:01 +00:00
Jean-Philippe Lang
7bae592e62
Fixed stub.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7906 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-23 20:48:20 +00:00
Jean-Philippe Lang
1e8a9da131
Handle the case of a text formatter that doesn't support section edit ( #2222 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7831 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-18 16:41:54 +00:00
Jean-Philippe Lang
6fc245327c
Wiki: allows single section edit ( #2222 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7829 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-18 16:25:00 +00:00
Toshi MARUYAMA
b38dc9a301
move repositories helper to_utf8 tests to new CodesetUtilTest ( #2371 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7828 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-18 14:57:58 +00:00
Toshi MARUYAMA
8433bbab69
move iconv from utf8 logic from pdf to lib/redmine/codeset_util.rb for common use ( #8549 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7818 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-16 05:07:16 +00:00
Jean-Philippe Lang
e9f9927534
Fixed: Error when reading ciphered text from the database without cipher key configured ( #9552 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7780 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-11 14:04:33 +00:00
Toshi MARUYAMA
e300188982
add unit test of escaping image urls ( #9245 )
...
Contributed by Holger Just.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7707 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-02 07:35:51 +00:00
Toshi MARUYAMA
2b4549b3ea
scm: mercurial: test: lib: update branches test for Branch class ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7674 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 05:19:58 +00:00
Toshi MARUYAMA
daae07f47c
scm: git: test: lib: update branches test for Branch class ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7672 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 05:18:28 +00:00
Toshi MARUYAMA
9ff5c7034d
scm: git: test: add test of parents to unit lib test ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7669 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 04:59:06 +00:00
Toshi MARUYAMA
613a056ed6
scm: mercurial: test: add test of parents to unit lib test ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7667 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 04:57:43 +00:00
Toshi MARUYAMA
476c3d54b7
scm: mercurial: update test repository ( #5501 )
...
This test repository has one merged revision.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7662 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 01:44:12 +00:00
Toshi MARUYAMA
81ef038587
scm: mercurial: drop supporting below Mercurial 1.1 ( #9465 )
...
On November 1st 2011, Mercurial 2.0 will be released.
On Mercurial 1.1.2, unit lib test fails with following error.
<pre>
Traceback (most recent call last):
File "/WEB-DOWN/hg-repo/hg-crew/hg", line 20, in <module>
mercurial.dispatch.run()
File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 20, in run
sys.exit(dispatch(sys.argv[1:]))
File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 29, in dispatch
return _runcatch(u, args)
File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 45, in _runcatch
return _dispatch(ui, args)
File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 367, in _dispatch
ret = _runcommand(ui, options, cmd, d)
File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 416, in _runcommand
return checkargs()
File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 376, in checkargs
return cmdfunc()
File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 361, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/WEB-DOWN/hg-repo/hg-crew/mercurial/util.py", line 715, in check
return func(*args, **kwargs)
File "/REDMINE-1/hg-workdir/redmine-bb-all/lib/redmine/scm/adapters/mercurial/redminehelper.py", line 149, in rhlog
if hg.util.version() >= '1.6':
AttributeError: 'module' object has no attribute 'version'
1) Error:
test_nodes_in_branch(MercurialAdapterTest):
Redmine::Scm::Adapters::MercurialAdapter::HgCommandAborted: hg exited with non-zero status: 1
lib/redmine/scm/adapters/mercurial_adapter.rb:306:in `hg'
lib/redmine/scm/adapters/mercurial_adapter.rb:234:in `nodes_in_branch'
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:311:in `test_nodes_in_branch'
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:304:in `each'
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:304:in `test_nodes_in_branch'
</pre>
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7650 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-25 06:10:12 +00:00
Toshi MARUYAMA
74cbbd38d0
scm: mercurial: skip failing unit lib tests on below Mercurial 1.5 ( #9465 )
...
Tests of non ASCII nor alphabetic nor numeric *named branch* fails on below Mercurial 1.5.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7642 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-24 09:32:38 +00:00
Toshi MARUYAMA
8ad8562a34
remove trailing white-spaces from test/unit/lib/redmine/menu_manager/menu_item_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6793 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 07:56:36 +00:00
Toshi MARUYAMA
fd4b19168a
remove trailing white-spaces from test/unit/lib/redmine/views/builders/json_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6792 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 07:56:02 +00:00
Toshi MARUYAMA
6c4da86c5d
remove trailing white-spaces from test/unit/lib/redmine/views/builders/xml_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6791 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 07:55:35 +00:00
Toshi MARUYAMA
1e944228fa
remove trailing white-spaces from test/unit/lib/redmine/wiki_formatting.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6790 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 07:54:57 +00:00
Toshi MARUYAMA
69b8497ab8
remove trailing white-spaces from test/unit/lib/redmine/wiki_formatting/macros_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6789 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 07:54:23 +00:00
Toshi MARUYAMA
98e7d125f1
remove trailing white-spaces from test/unit/lib/redmine/helpers/gantt_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6788 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 07:53:59 +00:00
Toshi MARUYAMA
5bf8d32503
remove trailing white-spaces from test/unit/lib/redmine/menu_manager/mapper_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6787 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 07:53:28 +00:00
Toshi MARUYAMA
99e9e7c4cd
remove trailing white-spaces from test/unit/lib/redmine/menu_manager/menu_helper_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6786 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 07:52:53 +00:00
Toshi MARUYAMA
5f1e8b3c55
remove trailing white-spaces from test/unit/lib/redmine/helpers/calendar_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6785 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 06:59:44 +00:00
Toshi MARUYAMA
3a17dfd4c1
remove trailing white-spaces from test/unit/lib/redmine/plugin_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6784 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 06:59:17 +00:00
Toshi MARUYAMA
bbfdc36853
remove trailing white-spaces from test/unit/lib/redmine/safe_attributes_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6783 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 06:58:54 +00:00
Toshi MARUYAMA
14a08a50fd
remove trailing white-spaces from test/unit/lib/redmine/themes_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6782 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 06:58:32 +00:00
Toshi MARUYAMA
980af85710
remove trailing white-spaces from test/unit/lib/redmine/menu_manager_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6781 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 06:58:08 +00:00