Рет қаралды 336
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: github.com/bre...
Dependency versions:
Ruby 3.1.1
RSpec 3.11.0
RSpec docs: relishapp.com/...