When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...

Headless Chrome is a way to run the Chrome browser without a visible window. Configuring Capybara Configure the Capybara driver...

SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...

When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...

tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

In Rubocop you might notice the cop Style/CaseEquality for e.g. this example: def foo(expected, actual) expected === actual end

github.com

Scroll and touch event listeners tend to be computationally expensive as they are triggered very often. Every time the event...

Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...

Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...

We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...

makandra dev

While debugging a SPF record I found spf-record.de to be very helpful. it lists all IPs that are covered by...

makandra dev

If you're using the webdrivers gem and VCR together, depending on your configuration, VCR will yell at you regulary...

After performing a live migration of a VM you may encounter issues with the clock of the migrated VM. The...

If you are trying to integrate VCR and Cucumber 4 and you're using the use_scenario_name: true option...

Here is an example with the --tags option. You need to wrap them inside --cucumber-options option of parallel_cucumber...

makandra dev

If you have a Ruby Pathname, you can use the method :/ to append filepaths to it. With this method, Ruby...

Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...

If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...

"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...

makandra dev
github.com

FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...

makandra dev

RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...

Select2 is a fantastic library for advanced dropdown boxes, but it depends on jQuery. Alternatives Tom Select

In a web application you sometimes have tasks that can not be processed during a request but need to go...

makandra dev
github.com

If you render markdown from user input, an attacker might be able to use this to inject javascript code into...