Commit 09f2bec6 authored by Robert Speicher's avatar Robert Speicher

Prefix random Markdown tips with "Tip:"

parent 82a67170
......@@ -118,7 +118,7 @@ module GitlabMarkdownHelper
# Returns a random markdown tip for use as a textarea placeholder
def random_markdown_tip
MARKDOWN_TIPS.sample
"Tip: #{MARKDOWN_TIPS.sample}"
end
private
......
......@@ -137,7 +137,7 @@ describe GitlabMarkdownHelper do
describe 'random_markdown_tip' do
it 'returns a random Markdown tip' do
stub_const("#{described_class}::MARKDOWN_TIPS", ['Random tip'])
expect(random_markdown_tip).to eq 'Random tip'
expect(random_markdown_tip).to eq 'Tip: Random tip'
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment