diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-23 21:00:10 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-23 21:00:10 -0400 |
commit | 82a671704d02d33beef88b829e74c8bb87ea8928 (patch) | |
tree | 3575162bc099ea2a719ea4cdb62f600da08e5e5b /spec/helpers/gitlab_markdown_helper_spec.rb | |
parent | 764b5913c8f960d09d4777e3233662f507b0ec13 (diff) | |
download | gitlab-ce-82a671704d02d33beef88b829e74c8bb87ea8928.tar.gz |
Show a random Markdown tip in the textarea placeholder
Diffstat (limited to 'spec/helpers/gitlab_markdown_helper_spec.rb')
-rw-r--r-- | spec/helpers/gitlab_markdown_helper_spec.rb | 7 |
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..a42ccb9b501 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 'Random tip' + end + end end |