summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-17 12:16:34 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-17 12:16:34 +0100
commit019fed0f72116a73f0d410fe0c892fc9a19921e7 (patch)
treef6422f314d9fa3f3a61230874fcde73b8ba15140 /features
parent4171933c0963696626c879c2d05afa1594a71d99 (diff)
downloadgitlab-ce-019fed0f72116a73f0d410fe0c892fc9a19921e7.tar.gz
Reuse `no_cache_headers` method in badges controller
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/badges/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/project/badges/build.rb b/features/steps/project/badges/build.rb
index 47540f356e9..66a48a176e5 100644
--- a/features/steps/project/badges/build.rb
+++ b/features/steps/project/badges/build.rb
@@ -21,7 +21,7 @@ class Spinach::Features::ProjectBadgesBuild < Spinach::FeatureSteps
end
step 'I should see a badge that has not been cached' do
- expect(page.response_headers).to include('Cache-Control' => 'no-cache')
+ expect(page.response_headers['Cache-Control']).to include 'no-cache'
end
def expect_badge(status)