Merge branch 'remove-your_email-gsub-in-help-page' into 'master'
Stop replacing `$your_email` with the user's email in the `/help` pages See merge request !8014
This commit is contained in:
commit
4f36506633
|
@ -1,3 +1,3 @@
|
||||||
- page_title @path.split("/").reverse.map(&:humanize)
|
- page_title @path.split("/").reverse.map(&:humanize)
|
||||||
.documentation.wiki
|
.documentation.wiki
|
||||||
= markdown @markdown.gsub('$your_email', current_user.try(:email) || "email@example.com")
|
= markdown @markdown
|
||||||
|
|
|
@ -1,16 +1,6 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'Help Pages', feature: true do
|
describe 'Help Pages', feature: true do
|
||||||
describe 'Show SSH page' do
|
|
||||||
before do
|
|
||||||
login_as :user
|
|
||||||
end
|
|
||||||
it 'replaces the variable $your_email with the email of the user' do
|
|
||||||
visit help_page_path('ssh/README')
|
|
||||||
expect(page).to have_content("ssh-keygen -t rsa -C \"#{@user.email}\"")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
describe 'Get the main help page' do
|
describe 'Get the main help page' do
|
||||||
shared_examples_for 'help page' do |prefix: ''|
|
shared_examples_for 'help page' do |prefix: ''|
|
||||||
it 'prefixes links correctly' do
|
it 'prefixes links correctly' do
|
||||||
|
|
Loading…
Reference in New Issue