Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9102

Show
Ignore:
Timestamp:
03/27/08 22:33:50 (3 months ago)
Author:
david
Message:

Stop adding the antiquated test/mocks/* directories and only add them to the path if theyre still there for legacy reasons [DHH]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r9101 r9102  
    11*SVN* 
     2 
     3* Stop adding the antiquated test/mocks/* directories and only add them to the path if they're still there for legacy reasons [DHH] 
    24 
    35* Added that gems can now be plugins if they include rails/init.rb #11444 [jbarnette] 
  • trunk/railties/lib/initializer.rb

    r9101 r9102  
    616616 
    617617      def default_load_paths 
    618         paths = ["#{root_path}/test/mocks/#{environment}"] 
     618        paths = [] 
     619         
     620        # Add the old mock paths only if the directories exists 
     621        paths.concat(Dir["#{root_path}/test/mocks/#{environment}"]) if File.exists?("#{root_path}/test/mocks/#{environment}") 
    619622 
    620623        # Add the app's controller directory 
  • trunk/railties/lib/rails_generator/generators/applications/app/app_generator.rb

    r8457 r9102  
    156156    test/functional 
    157157    test/integration 
    158     test/mocks/development 
    159     test/mocks/test 
    160158    test/unit 
    161159    vendor