diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-07 19:45:44 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-07 19:45:44 +0200 |
commit | 76d618404ee8a47a34b45dfe41d268eaaf52f00d (patch) | |
tree | f8c9e4bf2befb05d08a1929883e3c50b4af320dd | |
parent | 5b83abcc01bd4a24268126dc52019b9f11152a7c (diff) | |
download | gitlab-ce-76d618404ee8a47a34b45dfe41d268eaaf52f00d.tar.gz |
Fix markdown_spec to not use `before(:all)` in order to properly cleanup database after testing
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | spec/features/markdown_spec.rb | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG index ef4bd5fe295..0eb82b9299a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -37,6 +37,7 @@ v 8.9.0 (unreleased) - Add Application Setting to configure Container Registry token expire delay (default 5min) - Cache assigned issue and merge request counts in sidebar nav - Cache project build count in sidebar nav + - Fix markdown_spec to use before instead of before(:all) to properly cleanup database after testing - Reduce number of queries needed to render issue labels in the sidebar - Improve error handling importing projects - Remove duplicated notification settings diff --git a/spec/features/markdown_spec.rb b/spec/features/markdown_spec.rb index 1d892fe1a55..7663d193354 100644 --- a/spec/features/markdown_spec.rb +++ b/spec/features/markdown_spec.rb @@ -180,7 +180,7 @@ describe 'GitLab Markdown', feature: true do end end - before(:all) do + before do @feat = MarkdownFeature.new # `markdown` helper expects a `@project` variable @@ -188,7 +188,7 @@ describe 'GitLab Markdown', feature: true do end context 'default pipeline' do - before(:all) do + before do @html = markdown(@feat.raw_markdown) end |