Tutorials

Recording real requests with WebMock | Arkency Blog
Caveat: it’s global, i.e. it’ll apply to all the test cases you’ll run. If you want it for just one test case, run just a single one.(As far as I tried, there’s no easy way to cleanly make it per-example with an around hook, because that would mea...



Build a Ruby App with CockroachDB and ActiveRecord | CockroachDB Docs
Learn how to use CockroachDB from a simple Ruby script with the ActiveRecord gem.This tutorial shows you how build a simple Ruby application with CockroachDB and ActiveRecord. CockroachDB provides an ActiveRecord adapter for CockroachDB as a RubyGem.

Testing multiple sessions in the same test with Capybara
Sometimes a feature in your application will involve a back-and-forth between multiple users. When it comes time to write an automated system test, you can easily simulate switching between users using Capybara’s using_session helper.Instead of lo...


Creating an iOS Share Extension for a Turbo Rails App
A lot of excitement has swept through the Rails world since the release of Turbo in December 2020. Personally, what I’m looking forward to most is a seamless integration with native mobile platforms using the iOS and Android adapters.We are going ...

