Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...
"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...
# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...
In a web application you sometimes have tasks that can not be processed during a request but need to go...
betterspecs.org is a documentation on how to write better RSpec tests. Note that there are also other approaches like The...
With Rspec you can mock objects or functions, for example like this: expect(my_object).to receive(:my_function).and...
This seems to be obvious, but you can expect Rake tasks to be called in RSpec. it 'deletes all Users...
The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...
Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...
Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...
When tests might not run with skipping RSpec in the RSpec.describe failing with the error undefined method 'describe' for main...
ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To freeze the current time, use...
Most of the time it is a tedious task to apply a code style guide to an existing code...
This repository is a community-curated list of flexbox issues and cross-browser workarounds for them. The goal is that...
You can share a state in Ruby with global variables. Even if you should avoid them whenever possible, for debugging...
Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...
The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...
If rspec hangs with no output and you dont get a backtrace neither with --backtrace nor by just killing it...
Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...
Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...
Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...
TL;DR Most web applications do not require action on this. SameSite=None (old browser default) will continue to work...
RSpec >= 3.3 added aggregate_failures, which allows multiple failures in an example and list them all, rather than aborting on...
Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...