Rename GitlabMarkdownHelper -> MarkupHelper

It does more than solely GitLab Markdown, so rename to MarkupHelper.
This commit is contained in:
Toon Claes 2017-04-03 11:55:15 +02:00
parent 025b04f3e7
commit d95bffc6da
6 changed files with 6 additions and 6 deletions

View file

@ -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.

View file

@ -1,6 +1,6 @@
class BaseMailer < ActionMailer::Base
helper ApplicationHelper
helper GitlabMarkdownHelper
helper MarkupHelper
attr_accessor :current_user
helper_method :current_user, :can?

View file

@ -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

View file

@ -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

View file

@ -1,6 +1,6 @@
require 'spec_helper'
describe GitlabMarkdownHelper do
describe MarkupHelper do
include ApplicationHelper
let!(:project) { create(:project, :repository) }

View file

@ -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)