Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2016-04-01 21:03:39 +0300
committerGabriel Mazetto <gabriel@gitlab.com>2016-04-06 09:30:56 +0300
commit207b7218aa4394dc24c68041eade04474ff41537 (patch)
tree6f9cde70ccd9b0b5f757b868875bd01cdc141148 /spec
parent22055e10580ae93c2cb87956eefba0a06e9b50d0 (diff)
Ensure correct filter order to validate with our markdown spec
Diffstat (limited to 'spec')
-rw-r--r--spec/features/markdown_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/markdown_spec.rb b/spec/features/markdown_spec.rb
index 5149ce9cf2f..3d0d0e59fd7 100644
--- a/spec/features/markdown_spec.rb
+++ b/spec/features/markdown_spec.rb
@@ -39,7 +39,7 @@ describe 'GitLab Markdown', feature: true do
end
def doc(html = @html)
- Nokogiri::HTML::DocumentFragment.parse(html)
+ @doc ||= Nokogiri::HTML::DocumentFragment.parse(html)
end
# Shared behavior that all pipelines should exhibit