Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Performing a diff on a Rack/Rails response object recurses infinitely #312

@imtayadeway

Description

@imtayadeway

@myronmarston opening this to continue conversation on Twitter

It appears that if you pass the response object to PP.pp here, it will never finish:
https://github.com/rspec/rspec-support/blob/master/lib/rspec/support/differ.rb#L188

I doubt this is something that RSpec could/should mitigate - I'm opening this mainly to complete the investigation that began yesterday and share what I learned. Feel free to close. Of course, if you feel differently, I'm happy to attempt a fix. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions