diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb index 2cfa3e7a7..0e728be01 100644 --- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb @@ -101,12 +101,18 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest def test_macro_should_receive_the_object_as_argument_when_with_object_and_attribute issue = Issue.find(1) issue.description = "{{hello_world}}" - assert_equal '
Hello world! Object: Issue, Called with no argument and no block of text.
', textilizable(issue, :description) + assert_equal( + 'Hello world! Object: Issue, Called with no argument and no block of text.
', + textilizable(issue, :description) + ) end def test_macro_should_receive_the_object_as_argument_when_called_with_object_option text = "{{hello_world}}" - assert_equal 'Hello world! Object: Issue, Called with no argument and no block of text.
', textilizable(text, :object => Issue.find(1)) + assert_equal( + 'Hello world! Object: Issue, Called with no argument and no block of text.
', + textilizable(text, :object => Issue.find(1)) + ) end def test_extract_macro_options_should_with_args @@ -135,7 +141,10 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest end text = "{{exception}}" - assert_include '