1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test
Piotr Sarnacki f851352318 Added config.app_generators to allow configuring application's generators from railties.
With config.generators becomes a way to configure generators
for current instance only. For example:

module Blog
  class Engine < Rails::Engine
    config.generators do |g|
      g.orm :active_record
    end

    config.app_generators do |g|
      g.test_framework :rspec
    end
  end
end

such definition sets :active_record as orm for engine and :rspec
as test_framework for application. The values set with app_generators
can be overwritten in application using config.generators as you would
normally do:

module MyApp
  class Application < Rails::Application
    config.generators do |g|
      g.test_framework :test_unit
    end
  end
end
2010-09-30 09:47:06 +02:00
..
application Remove deprecated stuff in ActionController 2010-09-26 02:13:45 +08:00
fixtures It would be nice to actually commit test fixtures 2010-04-30 16:25:40 -07:00
generators Fix app and actions generators tests 2010-09-25 17:28:39 +02:00
isolation Fix running engine_test in isolation 2010-09-19 17:10:43 +02:00
railties Added config.app_generators to allow configuring application's generators from railties. 2010-09-30 09:47:06 +02:00
abstract_unit.rb Rails.application is set anyway, we don't need to set it manually, this was purpose of different behavior in tests and in application 2010-09-25 10:46:22 +02:00
backtrace_cleaner_test.rb Use backtrace cleaner for dev mode exception page 2010-01-16 21:34:35 -06:00
generators_test.rb application generation: --skip-testunit and --skip-activerecord renamed to --skip-test-unit and --skip-active-record respectively 2010-07-25 22:55:38 +02:00
initializable_test.rb Remove run_initializers from class methods. 2010-06-24 11:40:22 +02:00
paths_test.rb Add skip_eager_load!, skip_autoload! and friends to path objects. 2010-07-17 09:55:11 +02:00
rails_info_controller_test.rb Moves local_request? to require.local? 2010-08-13 17:35:52 -03:00
rails_info_test.rb Takes out stale methods relating to edge_rails_version 2010-05-16 17:21:29 +02:00
script_rails_loader_test.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00