Capistrano has the concept of a "rollback" that comes in really handy in case of errors. When you notice that...

Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...

I needed to make sure that an element is visible and not overshadowed by an element that has a higher...

This card will show you a cool way to define a class using Struct.new. A common usecase for Structs are...

Rails default config uses the ActiveSupport::Cache::NullStore and disables controller caching for all environments except production: config.action_controller.perform_caching = false...

Shoulda Matchers don't provide canditional validations (validations with if: option). Here is how to write tests for the condition...

Nowadays it is fairly easy to intercept and modify mails globally before they are sent. All you have to do...

makandra dev

ChromeDriver clicking works by simulating a mouse click in the middle of the element's first client rect (or bounding...

When you have a multi-server setup, you'll be adding a new server from time to time. Before doing...

Typhoeus has a different way of representing array params in a get request than RestClient. Typhoeus: http://example.com/?foo[0]=1&foo[1]=2&foo[2]=3

Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

rspec.info

In modern default RSpec configurations, your tests are usually run in random order. This helps to detect "flickering" tests that...

github.com

The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...

When filling out forms in Selenium tests, Chrome shows the (usual) bubble, asking to store those credentials. While the bubble...

For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in...

Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...

makandra dev

This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...

makandra dev
activestate.com

Looks like ActiveState is trying to market a new Ruby distribution for Enterprises: ActiveRuby Enterprise Edition is designed for businesses...

Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...

makandra dev

Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...

makandra dev
brunildo.org

The pages listed here contain tests and experiments about features, possibilities, browsers’ bugs concerning CSS. That is, over 200 experiments...

developer.mozilla.org

You can easily have a JavaScript hash/object that returns a default value for unset keys/properties -- as long as you need...

If the application under test makes sound, you probably want to disable this during integration testing. You can use the...

We generally use multiple application servers (at least two) and you have to search on all of them if you...