Project

General

Profile

Patch #40014 » 40014-test.patch

Go MAEDA, 2024-08-17 06:26

View differences:

test/unit/lib/redmine/wiki_formatting/macros_test.rb
279 279
    end
280 280
  end
281 281

  
282
  def test_macro_collapse_with_arg_contains_comma
283
    text = %|{{collapse("Click here, to see the example", Hide example)\n*Collapsed* block of text\n}}|
284
    result = textilizable(text)
285
    assert_select_in result, 'a.collapsible.icon-collapsed', :text => 'Click here, to see the example'
286
    assert_select_in result, 'a.collapsible.icon-expanded', :text => 'Hide example'
287
  end
288

  
282 289
  def test_macro_collapse_should_not_break_toc
283 290
    set_language_if_valid 'en'
284 291

  
(2-2/2)