Tests are about 100% control over UI interaction and your test scenario. Randomness makes writing tests hard. You will also...

I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...

Ask before leaving an unsaved CKEditor Vanilla JavaScript way, but removes any other onbeforeunload handlers: $(function(){ document.body.onbeforeunload = function() { for(editorName...

relishapp.com

Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...

If you have a text that is edited by WSYIWYG-Editor but want some length checking nevertheless, you need to...

Sometimes you want to strip a text of every special char. If you use \W, the result might not be...

Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...

If you want to switch to another ruby versions, you have several options, depending on what you want: Do you...

confreaks.com

Opal is a source to source ruby to javascript compiler, corelib and a runtime implementation that currently passes 3000 rubyspecs...

TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...

This error occurs when you already have a database.yml which defines the database for the cucumber environment instead of test...

Sometimes you need to monitor a connection from your machine to a specific, single host or network in order to...

makandra dev
fontcombiner.com

Font Combiner offers a way to tweak and adjust any TTF or OTF font (license permitting), by bringing in font...

dev.mysql.com

Usually our mysql queries are not case sensitive. In order to query case sensitive, you can use the mysql COLLATE...

A snippet of the carrierwave documentation You might come to a situation where you want to retroactively change a version...

divshot.com

Motion is quickly becoming one of the most important emerging techniques in building a quality user experience on the web...

If you need to enable NewRelic monitoring on certain machines within the same Rails environment, a simple solution is to...

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

stackoverflow.com

You're better off using debugger-ruby_core_source: gem install debugger-ruby_core_source If you can't do...

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

Geordi 0.16+ supports running selenium tests with project-specific firefox versions. Just update the gem. It will still default to...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

The default configuration of Rails disables CSRF protection in tests. If you accidentally forget to send the CSRF token for...

stackoverflow.com

If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...