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

class Book::Page end class MyBook < Book def new_page Page.new # has to be `Book::Page` in development to...

Make your custom web font available Add to ckeditor/config.js CKEDITOR.editorConfig = function(config) { config.contentsCss = [ '/assets/myCkeditorStyles.css', // any other file to encapsulate custom...

relishapp.com

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

blog.buildbettersoftware.com

Mornings can be rough. To make them a little easier, leave yourself a failing test if your work isn’t...

After I upgraded to Mac OS X Mavericks, I regularly got this error message when running Cucumber features with Selenium...

makandra dev

We have released Modularity 2. It has many incompatible changes. See below for a script to migrate your applications automatically...

If you want to test that a certain text is contained within the document title of your page, you can...

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

Modern IRB has time measurement built in. measure # Enable measure :off # Disable Custom Should your version of IRB not offer...

Assert rmagick provision ... Gemfile gem 'rmagick', '2.13.2' # at this moment the latest stable version config/initializer/carrierwave.rb require 'carrierwave/processing/rmagick' ... and define a...

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

alanklement.blogspot.de

I've written about the problem with user stories before. At the time, I found it better to just have...

Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the...

jetmore.org

swaks is a very nice tool to test SMTP. For the most linux distributions you can easily install it with...

Install and configure the AWS Command Line Interface Show existing certificates to test if the AWS Cli is working:

robots.thoughtbot.com

One of many useful techniques when your test suite needs to talk to a remote API.

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

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

If you need to test interaction with a remote API, check out the VCR gem as an alternative to Webmock...

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

You might not know that Rails disables CSRF protection in tests. This means that if you accidentally forget to send...