mirror of
https://github.com/redmine/redmine.git
synced 2026-04-03 02:59:33 +02:00
Fix failing tests (#43643).
git-svn-id: https://svn.redmine.org/redmine/trunk@24363 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -19,10 +19,11 @@
|
||||
|
||||
require_relative '../../../../../test_helper'
|
||||
|
||||
class Redmine::WikiFormatting::CommonMark::FormatterTest < ActionView::TestCase
|
||||
class Redmine::WikiFormatting::CommonMark::FormatterTest < Redmine::HelperTest
|
||||
if Object.const_defined?(:Commonmarker)
|
||||
|
||||
def setup
|
||||
super
|
||||
@formatter = Redmine::WikiFormatting::CommonMark::Formatter
|
||||
end
|
||||
|
||||
|
||||
@@ -20,8 +20,11 @@
|
||||
|
||||
require_relative '../../../../test_helper'
|
||||
|
||||
class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
|
||||
class Redmine::WikiFormatting::TextileFormatterTest < Redmine::HelperTest
|
||||
include IconsHelper
|
||||
|
||||
def setup
|
||||
super
|
||||
@formatter = Redmine::WikiFormatting::Textile::Formatter
|
||||
end
|
||||
|
||||
@@ -824,8 +827,10 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
|
||||
end
|
||||
|
||||
def pre_wrapper(text)
|
||||
'<div class="pre-wrapper" data-controller="clipboard"><a class="copy-pre-content-link icon-only" data-action="clipboard#copyPre">' +
|
||||
'<svg class="s18 icon-svg" aria-hidden="true"><use href="/assets/icons-34cfafab.svg#icon--copy-pre-content"></use></svg></a>' +
|
||||
icon = sprite_icon('copy-pre-content', size: 18)
|
||||
button_copy = l(:button_copy)
|
||||
'<div class="pre-wrapper" data-controller="clipboard"><a class="copy-pre-content-link icon-only" title="' + button_copy + '" data-action="clipboard#copyPre">' +
|
||||
icon + '</a>' +
|
||||
text +
|
||||
'</div>'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user