TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...
simple_format ignores Rails' XSS protection. Even when called with an unsafe string, HTML characters will not be escaped or...
If you type a command in your bash that doesn't exist you get this: bash: foo: command not found...
The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the...
If a customer calls and tells you that she cannot see some content of her website beware of the following...
If you have an html_safe string, you won't be able to call gsub with a block and match...
A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...
Internet Explorer until version 9 has some limitations when parsing CSS files Summarized, these are: Up to 31 CSS files...
By default, only application.js, application.css and all non-JS/CSS files are precompiled into public/assets. If you have asset manifests...
In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...
No one wants to cry over regression issues in views; does testing HTML and CSS have to be such a...
Our rspec_candy gem now gives you three matchers: be_same_number_as Tests if the given number is the...
For custom Rake tasks, you shouldn't need to modify them after the original definition. However, if you want to...
Don't say is_a?(ActiveRecord::NamedScope::Scope) because that is no longer true in Rails 3 and also doesn...
The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...
For my Gem Session project Holly I ran the Ironman of drag'n'drop implementations: Dragging in nested lists
The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...
Test suites usually grow over time as more and more development time is spent on a projects. Overall run-time...
Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...
When you are scrolling up to investigate a test failure it is super annoying when the terminal scrolls back down...
Updated the card with our current best practice (shared app code and specs via symlinks).
Sometimes you need to remove high Unicode characters from a string, so all characters have a code point between 0...
LibreOffice Impress, Writer, etc. doesn't embed most fonts into the PDFs it generates. This means if you share a...
Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...