🚀 Ruby upgrade tip: Fix those sneaky ArgumentErrors during your upgrade from Ruby 2 to Ruby 3.
Francois breaks it down on the blog: https://www.fastruby.io/blog/custom-deprecation-behavior.html?utm_source=Mastodon&utm_medium=Organic&utm_campaign=Blogpromo&utm_term=safeguardingfromdeprecation&utm_content=Gif&utm_id=
#rubyonrails #railsupgrade #activejob #sidekiq
#ruby geeks: I have been on a quest to test #Rails's #ActiveJob with #rspec. I have found precisely zero official documentation that actually works.
HERE IS THE ONLY GUIDE THAT HAS WORKED
https://gist.github.com/ChuckJHardy/10f54fc567ba3bd4d6f1
when / if you get errors about Minitest::UnexpectedError (even though you're running rspec) then read this SO post
#ruby #rails #activejob #rspec
i've wasted over an hour on this take-home test because rspec's documentation AND ?!SOURCE?! do not match the reality i am seeing in ANY WAY.
methods that only accept blocks and throw exceptions if you pass them something else are complaining that they've been passed a block. :lolsob:
Testing #ruby's #ActiveJob turns out to be a pain in the arse.