summaryrefslogtreecommitdiff
path: root/features/steps/project/badges
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-04 10:34:35 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-04 10:34:35 +0100
commitbf921d084e9f5e9e541d033db49c5c99eed1deb2 (patch)
treebf44876cb2894e24100b1f6087793e50c9f61e5f /features/steps/project/badges
parentf8c4dc97230c520df077c1274fd8d88680da5242 (diff)
downloadgitlab-ce-bf921d084e9f5e9e541d033db49c5c99eed1deb2.tar.gz
Invalidate cache for builds badge
Closes #13982
Diffstat (limited to 'features/steps/project/badges')
-rw-r--r--features/steps/project/badges/build.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/project/badges/build.rb b/features/steps/project/badges/build.rb
index cbfc35bed65..47540f356e9 100644
--- a/features/steps/project/badges/build.rb
+++ b/features/steps/project/badges/build.rb
@@ -20,6 +20,10 @@ class Spinach::Features::ProjectBadgesBuild < Spinach::FeatureSteps
expect_badge('running')
end
+ step 'I should see a badge that has not been cached' do
+ expect(page.response_headers).to include('Cache-Control' => 'no-cache')
+ end
+
def expect_badge(status)
svg = Nokogiri::XML.parse(page.body)
expect(page.response_headers).to include('Content-Type' => 'image/svg+xml')