diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb index 704e74528..e6f06489c 100644 --- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb @@ -39,6 +39,17 @@ class Redmine::WikiFormatting::MacrosTest < ActionView::TestCase def teardown end + def test_macro_registration + Redmine::WikiFormatting::Macros.register do + macro :foo do + "Foo macro output" + end + end + + text = "{{foo}}" + assert_equal '
Foo macro output
', textilizable(text) + end + def test_macro_hello_world text = "{{hello_world}}" assert textilizable(text).match(/Hello world!/)