Welcome to mirror list, hosted at ThFree Co, Russian Federation.

doc_url_helper.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbff4827c56b880295fcbc722f6e67e424269b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module DocUrlHelper
  def version
    "13.4.0-ee"
  end

  def doc_url(documentation_base_url)
    "#{documentation_base_url}/13.4/ee/#{path}.html"
  end

  def doc_url_without_version(documentation_base_url)
    "#{documentation_base_url}/ee/#{path}.html"
  end

  def stub_doc_file_read(file_name: 'index.md', content: )
    expect_file_read(File.join(Rails.root, 'doc', file_name), content: content)
  end
end

DocUrlHelper.prepend_mod