DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Test

07.20.2008
| 1890 views |
  • submit to reddit
        // test

#load all factories...
load_path = File.dirname(__FILE__) + "/factories/"
Dir.new(load_path).each do |f|
  full_path = load_path + f
  unless File.directory?(full_path)
    load full_path
  end
end