summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-25 08:59:54 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-25 08:59:54 +0000
commit9c0229732aee0edeac0896d6a62faea8a449199c (patch)
tree3562b0800955612f385c7a58a58ebca0544e5d1d /spec
parent87fa392d7ff5e94d60d34033156fdbeb836f100f (diff)
parent09f2bec64c40edc5a8cd172b83b1a584fb855ebf (diff)
downloadgitlab-ce-9c0229732aee0edeac0896d6a62faea8a449199c.tar.gz
Merge branch 'rs-random-placeholder-tip' into 'master'
Show a random Markdown tip in the textarea placeholder cc @darby See merge request !879
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/gitlab_markdown_helper_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb
index bbb434638ce..14c8c29d008 100644
--- a/spec/helpers/gitlab_markdown_helper_spec.rb
+++ b/spec/helpers/gitlab_markdown_helper_spec.rb
@@ -133,4 +133,11 @@ describe GitlabMarkdownHelper do
helper.render_wiki_content(@wiki)
end
end
+
+ 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 'Tip: Random tip'
+ end
+ end
end