back

The solution to almost every hard bug when using cucumber

If something ever doesn’t make sense, try using reload.

E.g. if @user.books returns one thing in a controller and another thing in a step, then call @user.reload.books.

Trying this early on can save hours.

February 12, 2010