When tests might not run with skipping RSpec in the RSpec.describe failing with the error undefined method 'describe' for main...

api.rubyonrails.org

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...

github.com

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...

makandra dev

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...

makandra dev

Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...

makandra Curriculum

When your code does not behave as expected, you can use a debugger statement ("breakpoint") at any point in your...

In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...

relishapp.com

When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...

Geordi uses parallel_tests if available for running the test suite. To debug an application it is very unhandy to...

There seems to be no built-in matcher in RSpec to check if a string contains terms in the desired...

A JavaScript error in an E2E test with Selenium will not cause your test to fail. This may cause you...

Migrating data from a legacy into a new system can be a surprisingly large undertaking. We have done this a...

At makandra, we've built a few gems over the years. Some of these are quite popular: spreewald (> 1M downloads...

rspec.info

RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...

makandra dev
rubydoc.info

CarrierWave comes with some RSpec matchers which will make testing more comfortable. Let's say you have an Uploader like...