Fix markdown_spec to not use `before(:all)` in order to properly cleanup database after testing

This commit is contained in:
Kamil Trzcinski 2016-06-07 19:45:44 +02:00
parent 5b83abcc01
commit 76d618404e
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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