Skip to content

Commit 1d65386

Browse files
committed
test(auto_source): update cache-control header expectation in response test
Adjusted the expected value of the cache-control header in the response test to include 'no-cache' and 'no-store'. This change ensures that the test accurately reflects the intended caching behavior for responses, improving reliability and correctness.
1 parent e5aea3e commit 1d65386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/routes/auto_source_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def app = described_class
7777
it 'responds successfully', :aggregate_failures do
7878
expect(response).to be_ok
7979
expect(response.body).to start_with '<?xml version="1.0" encoding="UTF-8"?>'
80-
expect(response.get_header('cache-control')).to eq 'must-revalidate, private, max-age=0'
80+
expect(response.get_header('cache-control')).to eq 'must-revalidate, no-cache, no-store, private, max-age=0'
8181
expect(response.get_header('content-type')).to eq described_class::CONTENT_TYPE_RSS
8282
end
8383
end

0 commit comments

Comments
 (0)