Created
          June 23, 2014 18:19 
        
      - 
      
- 
        Save nyarly/78a304b9e6ae4fe34747 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require 'spec_helper' | |
| require 'find' | |
| %w{lib app}.each do |subdir| | |
| path = Rails.root.join(subdir) | |
| puts "Requiring files under #{path}" | |
| Find.find(path) do |path| | |
| if File.file?(path) and %r{.*\.rb\z} =~ path | |
| begin | |
| require path | |
| rescue => ex | |
| warn "Exception #{ex.inspect} while requiring #{path}" | |
| end | |
| end | |
| end | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment