summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2019-01-21 23:58:54 +0100
committerTim Zallmann <tzallmann@gitlab.com>2019-01-21 23:58:54 +0100
commit86cda964cf7f289c8b0cd1efa80b3bd4bacfec4e (patch)
treea14c2210bb1edc4d8899c7df3326020fb220e0c1 /spec/controllers
parent5fc63a1d232608530a4cd4a45c34a2bed695169a (diff)
downloadgitlab-ce-86cda964cf7f289c8b0cd1efa80b3bd4bacfec4e.tar.gz
Fixed static analysis error and 2 caching specs
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/uploads_controller_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/controllers/uploads_controller_spec.rb b/spec/controllers/uploads_controller_spec.rb
index 482f9af7211..f731ac2971b 100644
--- a/spec/controllers/uploads_controller_spec.rb
+++ b/spec/controllers/uploads_controller_spec.rb
@@ -12,7 +12,7 @@ shared_examples 'content not cached without revalidation and no-store' do
end
end
-shared_examples 'content publicy cached' do
+shared_examples 'content publicly cached' do
it 'ensures content is publicly cached' do
# Fixed in newer versions of ActivePack, it will only output a single `private`.
expect(subject['Cache-Control']).to eq('max-age=300, public')
@@ -191,7 +191,7 @@ describe UploadsController do
expect(response).to have_gitlab_http_status(200)
end
- it_behaves_like 'content publicy cached' do
+ it_behaves_like 'content publicly cached' do
subject do
get :show, params: { model: 'user', mounted_as: 'avatar', id: user.id, filename: 'dk.png' }
@@ -208,7 +208,7 @@ describe UploadsController do
expect(response).to have_gitlab_http_status(200)
end
- it_behaves_like 'content not cached without revalidation' do
+ it_behaves_like 'content publicly cached' do
subject do
get :show, params: { model: 'user', mounted_as: 'avatar', id: user.id, filename: 'dk.png' }
@@ -544,7 +544,7 @@ describe UploadsController do
expect(response).to have_gitlab_http_status(200)
end
- it_behaves_like 'content not cached without revalidation' do
+ it_behaves_like 'content publicly cached' do
subject do
get :show, params: { model: 'appearance', mounted_as: 'header_logo', id: appearance.id, filename: 'dk.png' }
@@ -564,7 +564,7 @@ describe UploadsController do
expect(response).to have_gitlab_http_status(200)
end
- it_behaves_like 'content not cached without revalidation' do
+ it_behaves_like 'content publicly cached' do
subject do
get :show, params: { model: 'appearance', mounted_as: 'logo', id: appearance.id, filename: 'dk.png' }