Skip to content

Instantly share code, notes, and snippets.

@thegrubbsian
Created March 18, 2012 19:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thegrubbsian/2079914 to your computer and use it in GitHub Desktop.
Save thegrubbsian/2079914 to your computer and use it in GitHub Desktop.
blog: Emulate Rails auto loading for testing engines
include ActiveSupport
["app/**/", "lib/**/"].each do |glob|
Dir.glob(glob).each do |dir|
Dependencies.autoload_paths << File.join(File.dirname(__FILE__), dir)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment