makandra dev

webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...

RubyMine comes with a nice way to grep through your project's files: The finder (ctrl + shift + f). Don't...

Element finding is a central feature of Capybara. Since #find is normally used to get elements from the current page...

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

In Ruby on Rails, all objects have a useful blank? method. It returns true for nil but also for empty...

Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...

When you update your ChromeDriver to version 75 or beyond, you might get w3c errors in your tests.

If you get e.g. this error message when you try to run puppet agent: Error: Failed to apply catalog: undefined...

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

PostCSS is a tool for transforming styles with JS plugins. In Webpacker you can configure the plugins and their settings...

This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...

While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...

Rails' ActiveSupport::TimeWithZone objects have both a timezone code and offset, e.g. Thu, 28 Mar 2019 16:00:00 CET...

When we want to use our own (or bought) fonts in an application with Webpack(er), we have two options...

When you have a powerful machine with many CPU cores, you might run into an error like

Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...

RSpec >= 3.3 added aggregate_failures, which allows multiple failures in an example and list them all, rather than aborting on...

If you have a PostgreSQL dump in the custom format you can can view the text format dump (plain SQL...

makandra dev

This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects

When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...

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

Cucumber has an output format that prints step definitions only. You can use this to find unused ones: Temporarily add...