Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cached_response_shared_examples.rb « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 34e5f741b4ebe7a8aa25838fa3e33ea3d77a8ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true
#
# Negates lib/gitlab/no_cache_headers.rb
#

RSpec.shared_examples 'cached response' do
  it 'defines a cached header response' do
    expect(response.headers["Cache-Control"]).not_to include("no-store", "no-cache")
    expect(response.headers["Pragma"]).not_to eq("no-cache")
    expect(response.headers["Expires"]).not_to eq("Fri, 01 Jan 1990 00:00:00 GMT")
  end
end