Be careful when stubbing out attributes on records that are defined by associations. Nothing is as it seems to be...
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...
When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...
Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...
Don't say is_a?(ActiveRecord::NamedScope::Scope) because that is no longer true in Rails 3 and also doesn...
paper_trail is an excellent gem to track record versions and changes. You almost never want to reimplement something like...
When we looked at this card together a year ago, we were no longer sure if unquote is actually useful...
The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...
The $.cssHooks object provides a way to define functions for getting and setting particular CSS values. It can also be...
The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...
I highly recommend that you make use of RubyMine's feature to pin tabs. When you pin all "important" files...
Test suites usually grow over time as more and more development time is spent on a projects. Overall run-time...
When you use method_missing to have an object return something on a method call, always make sure you also...
Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...
You can specify the version of bundler to execute a command (most often you need an older version of bundler...
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).
If you use rails_admin, your specs pass with the rspec binary, but not using rake spec (or rake parallel...
RSpec's be_false behaves unexpectedly: nil.should be_false # passes, as the expectation returns true If you want to check...
Ruby 1.9.2 is very slow when loading files, especially starting Rails servers or running specs takes forever.
Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...
The Rails community has been abuzz with object-oriented programming, SOLID principles, laws, design patterns, and other principles, practices, and...
Recent rails security updates have shown that people make incorrect assumptions about the possible contents of the params hash.