Closed dylan-hoefsloot closed 1 year ago
It's expected behavior. see https://github.com/ruby/psych/issues/564#issuecomment-1184520981
@hsbt It might be expected behaviour for these errors to be appearing by default but shouldn't setting yaml_column_permitted_classes
fix this issue? or this an activerecord
issue instead?
It's rails
or activerecord
issues. You may resolve this with downgrading Psych
version.
Steps to reproduce
I upgraded ruby from
2.7.6
to3.1.4
Run any rspec tests which load fixtures that have a field that is a time
Expected behavior
Fixtures are loaded and tests run
Actual behavior
I get the following error when trying to run any specs
System configuration
Rails version: 6.0.6.1 Ruby version: 3.1.4
Solutions I have tried
Adding the following to
config/application.rb
(which is suggested in every other issue pertaining to this error I can find)Confirming it is the fixtures throwing the error by commenting out
Confirming it is the time in the fixtures by commenting out usages such as
Downgrading back to
2.7.6
works but this is not ideal as I am trying to upgrade ruby to a newer version