summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/gitlab_markdown_helper_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb
index a4db8b4ff7e..d49247accc2 100644
--- a/spec/helpers/gitlab_markdown_helper_spec.rb
+++ b/spec/helpers/gitlab_markdown_helper_spec.rb
@@ -366,6 +366,15 @@ describe GitlabMarkdownHelper do
markdown(actual).should match(%r{Apply <em><a.+>!#{merge_request.iid}</a></em>})
end
+ it "should handle tables" do
+ actual = %Q{| header 1 | header 2 |
+| -------- | -------- |
+| cell 1 | cell 2 |
+| cell 3 | cell 4 |}
+
+ markdown(actual).should match(/\A<table/)
+ end
+
it "should leave code blocks untouched" do
helper.stub(:user_color_scheme_class).and_return(:white)