These changes were geared to get announcement_service.rb tests to pass. (Because of shared examples/specs were laid out on talk, it may be possible more tests have passed because of this).
Changes:
Rails 4 -> 5, parameters no longer inherit from HashWithIndifferentAccess. So hash methods like fetch, slice etc. will no longer work.
We call .to_h on params in order to be able to run hash methods.
These changes were geared to get announcement_service.rb tests to pass. (Because of shared examples/specs were laid out on talk, it may be possible more tests have passed because of this).
Changes:
fetch
,slice
etc. will no longer work..to_h
on params in order to be able to run hash methods.