RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...
In a web application you sometimes have tasks that can not be processed during a request but need to go...
When an event listener on a DOM element throws an error, that error will be silenced and not interrupt your...
tl;dr Don't forget require 'English' if you use a named global such as $LAST_MATCH_INFO. Otherwise this...
betterspecs.org is a documentation on how to write better RSpec tests. Note that there are also other approaches like The...
We use the whenever gem to automatically update the crontab of the servers we deploy to. By default, whenever will...
One of the earliest pieces of wisdom we are given as programmers is to not write duplicate code: Don’t...
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...
Embedding videos on a website is very easy, add a tag to your source code and it just works...
To find an input with the type hidden, you need to specify the type hidden: find_field('Some label', type...
If you need to test some HTML, e.g. an embed code, you can use RubyMine's "scratch files":
Imagine you want to write a cucumber test for a user-to-user chat. To do this, you need the...
This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...
PostgreSQL and ActiveRecord have a good support for storing dynamic attributes (hashes) in columns of type JSONB. But sometimes you...
Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...
Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...
To test that an object was constructed by a given constructor function, use jasmine.any(Klass): describe('plus()', function() { it ('returns...
If you want to make your Rails application be capable of sending SMTP emails, check out the action mailer configuration...
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 travel a relative amount of...
Most of the time it is a tedious task to apply a code style guide to an existing code...
When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...