N+1 queries are quick to sneak in and can wreak havoc on performance. This approach will help you find them quickly, write the test, and preload correctly.
Reviews common process of investigating test failures and the Autopsy gem for automating generating useful artifacts.
An introduction to using ActiveRecord and RSpec to read EVE's static data dump from a MySQL database.
We’ve found CSS classes used to connect JS to the DOM are best kept separate from css classes intended for visual style and layout.
RSpec gives you multiple hooks to facilitate setup and tear-down of your specs. Using an around hook gives you the ability to DRY up your spec_helper.
How I've used capybara-screenshot to work through some perplexing test failures.
Running your tests in random order will increase their robustness. You can now configure RSpec to do just that.
I rid a large test suite of intermittent failures. Here are some of the causes of the random failures and what I did to prevent them from failing.
Compares unit testing with mock objects in googlemock to RSpec/Mocha, highlighting the differences for someone used to higher-level languages like Ruby.
Recently I ran into some trouble with the way I was trying to use the Mongoid gem. Eventually I realized that RSpec was filtering out parts of my backtrace.