relishapp.com

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

docs.ruby-lang.org

Percent Notation We already know that that we can create strings using the percent notation: %(<foo="bar's ton">) is...

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

Font Awesome 5 is a comprehensive solution for vector icons on your website. Originally, Font Awesome came as an icon...

github.com

Masonry is a famous library to dynamically arrange a grid of items that have different aspect ratio, like horizontal and...

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

Geordi's cucumber command has a --rerun option that reruns failing tests the given number of times. Usage: geordi cucumber...

web.archive.org

Restricting access to cookies is essential for security in many web apps. For example, the session ID, the secret token...

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

If you want to fill in textareas with multiple lines of text (containing line breaks / new lines) you can use...

If possible your code should detect features, not browsers. But sometimes you just need to sniff the browser. And when...

makandra dev
litmus.com

The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...

rspec.info

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

caniuse.com

There is a kinda secret, yet well supported CSS feature called currentColor. It's like a special CSS variable that...

makandra dev
content.pivotal.io

A matcher is a function that returns an object with a compare key. Usually it is registered with beforeEach...

There are two ways within systemd to manage the fact that you need the gluster service active before mounting the...

Webpacker uses Babel and Webpack to transpile modern JavaScript down to EcmaScript 5. Depending on what browser a project needs...

When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...

makandra dev
github.com

geordi delete_dumps [directory] Recursively search for files ending in *.dump and offer to delete those. When no...

You need to update a lof gems. Make sure you don't have any version constraints in your...

We often use the Then console step from spreewald in combination with geordi vnc from geordi to debug tests within...

makandracards.com

In Spreewald 1.10.4+, nested patiently blocks are now patient. Here is an example: patiently do outer_code patiently do

Use bundler > 1.15 to fix Gem::LOADED_SPECS_MUTEX (NameError). Given the following project: ruby -v ruby 1.8.7

w3c.github.io

Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...