Rename GitlabMarkdownHelper -> MarkupHelper
It does more than solely GitLab Markdown, so rename to MarkupHelper.
This commit is contained in:
parent
025b04f3e7
commit
d95bffc6da
6 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
require 'nokogiri'
|
||||
|
||||
module GitlabMarkdownHelper
|
||||
module MarkupHelper
|
||||
# Use this in places where you would normally use link_to(gfm(...), ...).
|
||||
#
|
||||
# It solves a problem occurring with nested links (i.e.
|
|
@ -1,6 +1,6 @@
|
|||
class BaseMailer < ActionMailer::Base
|
||||
helper ApplicationHelper
|
||||
helper GitlabMarkdownHelper
|
||||
helper MarkupHelper
|
||||
|
||||
attr_accessor :current_user
|
||||
helper_method :current_user, :can?
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Copy as GFM', feature: true, js: true do
|
||||
include GitlabMarkdownHelper
|
||||
include MarkupHelper
|
||||
include RepoHelpers
|
||||
include ActionView::Helpers::JavaScriptHelper
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ require 'erb'
|
|||
|
||||
describe 'GitLab Markdown', feature: true do
|
||||
include Capybara::Node::Matchers
|
||||
include GitlabMarkdownHelper
|
||||
include MarkupHelper
|
||||
include MarkdownMatchers
|
||||
|
||||
# Sometimes it can be useful to see the parsed output of the Markdown document
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe GitlabMarkdownHelper do
|
||||
describe MarkupHelper do
|
||||
include ApplicationHelper
|
||||
|
||||
let!(:project) { create(:project, :repository) }
|
|
@ -595,7 +595,7 @@ describe SystemNoteService, services: true do
|
|||
end
|
||||
|
||||
shared_examples 'cross project mentionable' do
|
||||
include GitlabMarkdownHelper
|
||||
include MarkupHelper
|
||||
|
||||
it 'contains cross reference to new noteable' do
|
||||
expect(subject.note).to include cross_project_reference(new_project, new_noteable)
|
||||
|
|
Loading…
Reference in a new issue