When testing Ruby code with RSpec, the code under test may do more than just return a value. It could raise an error, throw something, or yield a block. This screencast looks at how to mock those behaviors with Rspec.
Source code: https://github.com/brettchalupa/scree...
Dependency versions:
Ruby 3.1.1
RSpec 3.11.0
RSpec docs: https://relishapp.com/rspec/rspec-moc...