Skip to content

Instantly share code, notes, and snippets.

@montague
Created October 15, 2012 20:20
Show Gist options
  • Save montague/3895133 to your computer and use it in GitHub Desktop.
Save montague/3895133 to your computer and use it in GitHub Desktop.
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
# see this http://stackoverflow.com/questions/357754/can-i-traverse-symlinked-directories-in-ruby-with-a-glob
Dir[Rails.root.join("spec/support/**{,/*/**}/*.rb")].each {|f| require f}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment