Skip to content

cookies.delete broken for request type other than GET in controller tests #27584

@iamchucky

Description

@iamchucky

Steps to reproduce

Reproduction Script

Expected behavior

cookies["foo"] in test cases should be nil after cookies.delete is called in controller

Actual behavior

only GET request has the cookies["foo"] deleted while other request types still has cookies["foo"]

System configuration

Rails version: 5.0.1, 5-0-stable
Ruby version: 2.3.1p112

Note that this is passing for Rails 4.2.7.1

I've noticed that ae29142 has cookies.update res.cookies only for get but not for other request types, is that the root of the issue though?

This issue also seems to be related:
rspec/rspec-rails#1574

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions