Skip to content

Commit

Permalink
Use response_vary_headers method in requests/cache_spec (mastodon#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored and skerit committed Feb 27, 2024
1 parent b853e4f commit 18bcbd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/requests/cache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ module DisabledAnonymousAPI
get '/users/alice'

expect(response).to redirect_to('/@alice')
expect(response.headers['Vary']&.split(',')&.map { |x| x.strip.downcase }).to include('accept')
expect(response_vary_headers).to include('accept')
end
end

Expand Down

0 comments on commit 18bcbd5

Please sign in to comment.