Updated: 29 July 2011: now using lib directory
I’ve found it’s good to store all the pages and common code in a lib directory next to your features directory, so that when you do a dry-run, none of this code is loaded, which can cause problems.
You need to add the lib directory to your load path using something like:
$: << File.dirname(__FILE__)+'/../../lib'
A typical file structure (Cucumber garden) would look something like this:
