ruby1.9: macro must accept 2 arguments.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8168 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
02893a17ad
commit
b1bb26b1e0
|
@ -77,7 +77,7 @@ module Redmine
|
|||
end
|
||||
|
||||
desc "Displays a list of all available macros, including description if available."
|
||||
macro :macro_list do
|
||||
macro :macro_list do |obj, args|
|
||||
out = ''
|
||||
@@available_macros.keys.collect(&:to_s).sort.each do |macro|
|
||||
out << content_tag('dt', content_tag('code', macro))
|
||||
|
|
|
@ -41,7 +41,7 @@ class Redmine::WikiFormatting::MacrosTest < ActionView::TestCase
|
|||
|
||||
def test_macro_registration
|
||||
Redmine::WikiFormatting::Macros.register do
|
||||
macro :foo do
|
||||
macro :foo do |obj, args|
|
||||
"Foo macro output"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue