In case you want to use pry with an older version of Ruby, you can try the following configurations.
Ruby and Rails have several methods for creating a new object that looks like another: clone, dup, deep_dup. When...
You can install rubygems 3.0.8 (released on February 18, 2020) to keep all the Gem::Specification#rubyforge_project deprecation warnings...
You can run bundle install in parallel. This might be helpful for development, where you often install many new gems...
The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...
Test-Driven Development (TDD) in its most dogmatic form (red-green-refactor in micro-iterations) can be tedious. It does...
Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...
A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...
Embedding videos on a website is very easy, add a tag to your source code and it just works...
Code comments allow for adding human readable text right next to the code: notes for other developers, and for your...
To find an input with the type hidden, you need to specify the type hidden: find_field('Some label', type...
We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...
Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...
This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...
Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...
When you have two inputs, where one contains the name of the other (eg. Name and Name with special treatment...
Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...
Install the latest bundler version: gem install bundler Fetching bundler-2.3.5.gem Successfully installed bundler-2.3.5 1 gem installed Update the bundler...
When tests might not run with skipping RSpec in the RSpec.describe failing with the error undefined method 'describe' for main...
A primer on vector graphics For rastered image formats like JPG or PNG, each pixel is basically drawn on a...
There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...
ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To freeze the current time, use...
The Ruby standard lib ships with a YAML Parser called Psych. But serializing and deserializing data seems not as obvious...
There is a practical short list for valid/invalid example email addresses - Thanks to Florian L.! The definition for valid emails...