Ruby Testing Server Part Two
Following from my post from 2022 about testing Rails application with a static server, I wanted to mock an API during a test. The reason for this is that I like to keep the external dependencies to a minimum.
mount_proc which lets me create endpoints on the fly. Since my
fixture_server provides access to the
server object, it’s as simple as this: