Commit 0b93f8cd authored by James Lopez's avatar James Lopez

Fix spec for Rails 5

parent 782badd0
...@@ -8,7 +8,11 @@ end ...@@ -8,7 +8,11 @@ end
shared_examples 'content not cached without revalidation and no-store' do shared_examples 'content not cached without revalidation and no-store' do
it 'ensures content will not be cached without revalidation' do it 'ensures content will not be cached without revalidation' do
# Fixed in newer versions of ActivePack, it will only output a single `private`. # Fixed in newer versions of ActivePack, it will only output a single `private`.
expect(subject['Cache-Control']).to eq('max-age=0, private, must-revalidate, private, no-store') if Gitlab.rails5?
expect(subject['Cache-Control']).to eq('max-age=0, private, must-revalidate, no-store')
else
expect(subject['Cache-Control']).to eq('max-age=0, private, must-revalidate, private, no-store')
end
end end
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