Commit 8756e392 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch '321526-flaky-test-spec-models-release_highlight_spec-rb-1-1-1-1-2' into 'master'

Resolve "Flaky test spec/models/release_highlight_spec.rb[1:1:1:1]"

See merge request gitlab-org/gitlab!54200
parents 3b8f30b9 4e37833e
......@@ -2,7 +2,7 @@
require 'spec_helper'
RSpec.describe ReleaseHighlight do
RSpec.describe ReleaseHighlight, :clean_gitlab_redis_cache do
let(:fixture_dir_glob) { Dir.glob(File.join('spec', 'fixtures', 'whats_new', '*.yml')).grep(/\d*\_(\d*\_\d*)\.yml$/) }
before do
......
......@@ -2,7 +2,11 @@
require 'spec_helper'
RSpec.describe WhatsNewController do
RSpec.describe WhatsNewController, :clean_gitlab_redis_cache do
after do
ReleaseHighlight.instance_variable_set(:@file_paths, nil)
end
describe 'whats_new_path' do
let(:item) { double(:item) }
let(:highlights) { double(:highlight, items: [item], map: [item].map, next_page: 2) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment