ruby/psych

v4 conflicts with sidekiq matchers

Paul-Yves opened this issue · 3 comments

I don't know the internal specifics but upgrading to psych 4 breaks all the sidekiq rspec matchers such as be_delayed. The message is Psych::DisallowedClass: Tried to load unspecified class: Date.

Any one encountered this issue ? Is there a way to deactivate psych new default secure reading on a global scale (in specs) ?

Thanks for asking, this is a change in Psych 4.0, that libraries may need to adapt to.

See for example #503 where the library adapted to the changes: sparklemotion/http-cookie#34.

Hope these examples help! Perhaps register an Issue in https://github.com/philostler/rspec-sidekiq/issues ?

Ok, I contacted them to see if they are willing to change it.

@Paul-Yves Thanks, I'll close this issue.