"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/unit/lib/redmine/wiki_formatting/macros_test.rb" between
redmine-4.1.0.tar.gz and redmine-4.1.1.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

macros_test.rb  (redmine-4.1.0):macros_test.rb  (redmine-4.1.1)
skipping to change at line 218 skipping to change at line 218
assert_include 'Page not found', textilizable(text) assert_include 'Page not found', textilizable(text)
end end
def test_macro_collapse def test_macro_collapse
text = "{{collapse\n*Collapsed* block of text\n}}" text = "{{collapse\n*Collapsed* block of text\n}}"
with_locale 'en' do with_locale 'en' do
result = textilizable(text) result = textilizable(text)
assert_select_in result, 'div.collapsed-text' assert_select_in result, 'div.collapsed-text'
assert_select_in result, 'strong', :text => 'Collapsed' assert_select_in result, 'strong', :text => 'Collapsed'
assert_select_in result, 'a.collapsible.collapsed', :text => 'Show' assert_select_in result, 'a.collapsible.icon-collapsed', :text => 'Show'
assert_select_in result, 'a.collapsible', :text => 'Hide' assert_select_in result, 'a.collapsible.icon-expended', :text => 'Hide'
end end
end end
def test_macro_collapse_with_one_arg def test_macro_collapse_with_one_arg
text = "{{collapse(Example)\n*Collapsed* block of text\n}}" text = "{{collapse(Example)\n*Collapsed* block of text\n}}"
result = textilizable(text) result = textilizable(text)
assert_select_in result, 'div.collapsed-text' assert_select_in result, 'div.collapsed-text'
assert_select_in result, 'strong', :text => 'Collapsed' assert_select_in result, 'strong', :text => 'Collapsed'
assert_select_in result, 'a.collapsible.collapsed', :text => 'Example' assert_select_in result, 'a.collapsible.icon-collapsed', :text => 'Example'
assert_select_in result, 'a.collapsible', :text => 'Example' assert_select_in result, 'a.collapsible.icon-expended', :text => 'Example'
end end
def test_macro_collapse_with_two_args def test_macro_collapse_with_two_args
text = "{{collapse(Show example, Hide example)\n*Collapsed* block of text\n} }" text = "{{collapse(Show example, Hide example)\n*Collapsed* block of text\n} }"
result = textilizable(text) result = textilizable(text)
assert_select_in result, 'div.collapsed-text' assert_select_in result, 'div.collapsed-text'
assert_select_in result, 'strong', :text => 'Collapsed' assert_select_in result, 'strong', :text => 'Collapsed'
assert_select_in result, 'a.collapsible.collapsed', :text => 'Show example' assert_select_in result, 'a.collapsible.icon-collapsed', :text => 'Show exam
assert_select_in result, 'a.collapsible', :text => 'Hide example' ple'
assert_select_in result, 'a.collapsible.icon-expended', :text => 'Hide examp
le'
end end
def test_macro_collapse_should_not_break_toc def test_macro_collapse_should_not_break_toc
set_language_if_valid 'en' set_language_if_valid 'en'
text = <<~RAW text = <<~RAW
{{toc}} {{toc}}
h1. Title h1. Title
 End of changes. 3 change blocks. 
6 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)