Skip to content

Instantly share code, notes, and snippets.

@mxriverlynn
Created November 22, 2010 22:34
Show Gist options
  • Save mxriverlynn/710853 to your computer and use it in GitHub Desktop.
Save mxriverlynn/710853 to your computer and use it in GitHub Desktop.
Here's how I set up my spec_helper.rb so I can run my specs from any folder.
@root_dir = File.expand_path(File.join(File.dirname(__FILE__), "../../"))
$: << File.join(@root_dir, "lib")
$: << File.join(@root_dir, "spec")
$: << File.join(@root_dir, "spec/patches")
$: << File.join(@root_dir, "spec/support")
$: << File.join(@root_dir, "lib/albacore/config")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment