Files
gitlab-foss/spec/support/helpers/doc_url_helper.rb
2025-02-17 21:09:21 +00:00

22 lines
455 B
Ruby

# frozen_string_literal: true
module DocUrlHelper
def version
"13.4.0-ee"
end
def doc_url(documentation_base_url)
"#{documentation_base_url}/13.4/#{path}/"
end
def doc_url_without_version(documentation_base_url)
"#{documentation_base_url}/#{path}/"
end
def stub_doc_file_read(content:, file_name: 'index.md')
expect_file_read(File.join(Rails.root, 'doc', file_name), content: content)
end
end
DocUrlHelper.prepend_mod