Commit b765bc3c authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch '12263-job-failed-234179843' into 'master'

Fix GeoNodeStatus#update_cache! spec

Closes #12263

See merge request gitlab-org/gitlab-ee!14267
parents b239b078 c387f3ef
...@@ -33,8 +33,10 @@ describe GeoNodeStatus, :geo, :geo_fdw do ...@@ -33,8 +33,10 @@ describe GeoNodeStatus, :geo, :geo_fdw do
describe '#update_cache!' do describe '#update_cache!' do
it 'writes a cache' do it 'writes a cache' do
rails_cache = double rails_cache = double
allow(Rails).to receive(:cache).and_return(rails_cache)
allow(rails_cache).to receive(:fetch).with('flipper:persisted_names', expires_in: 1.minute).and_return([described_class.cache_key])
expect(rails_cache).to receive(:write).with(described_class.cache_key, kind_of(Hash)) expect(rails_cache).to receive(:write).with(described_class.cache_key, kind_of(Hash))
expect(Rails).to receive(:cache).and_return(rails_cache)
described_class.new.update_cache! described_class.new.update_cache!
end end
......
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