Commit Graph

12 Commits

Author SHA1 Message Date
Akira Matsuda 2d61745af4 Merge two tests that needs to initialize Rails before accessing `Rails`
Fixes "NameError: uninitialized constant ApplicationTests::ConfigurationTests::CustomTest::Rails"
when run individually
2017-01-23 02:56:17 +09:00
Akira Matsuda e8ba0c0f21 "Use assert_nil if expecting nil. This will fail in minitest 6." 2016-12-25 02:29:52 +09:00
Xavier Noria 783763bde9 applies new string literal convention in railties/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:16:09 +02:00
Guillermo Iguaran c62ac07be8 Merge pull request #25652 from prathamesh-sonpatki/rm-boot-rails
Remove unused boot_rails method and it's usage
2016-07-08 14:50:24 -05:00
David Feldman 5086432097 implement respond_to_missing? to match method_missing 2016-07-05 12:28:12 -05:00
Prathamesh Sonpatki d93427840e
Remove unused boot_rails method and it's usage
- The `boot_rails` method from abstract_unit.rb is empty after 2abcdfd978.
- So let's remove it and its usage.
2016-07-04 09:34:21 +05:30
Ankit Gupta 533a73c125 removing unused and already required require's
custom test - Does not include EnvHelpers and the require is not needed
path generation test - require abstract_unit which has .  rails/all requires rails and corresponding
2015-05-11 11:33:28 -04:00
Rafael Mendonça França 35867c0bee Remove unneeded base file
We are only using for one test class
2015-05-03 21:25:56 -03:00
Carlos Antonio da Silva 2f7ac9cdcc Fix setting simple values to the new config.x
Previously setting simple values to the config.x object resulted in the
following:

    config.x.super_debugger = true
    config.x.super_debugger #=> {}

Which was against the examples showed in the changelog/release notes.
2014-08-19 21:59:01 -03:00
Rafael Mendonça França 43073b393d Revert "Improve custom configuration"
This reverts commit de4891344c.

Conflicts:
	railties/lib/rails/railtie/configuration.rb

It added regression. Will be back after the beta
2014-08-19 19:41:15 -03:00
Rafael Mendonça França de4891344c Improve custom configuration
1. Hashes can be assigned
2. We don't need a special level anymore

The method chain only works in the top level.

If users need a second level they need to assign a OrderedOptions to the
key:

    config.resque.server = ActiveSupport::OrderedOptions.new
    config.resque.server.url = "http://localhost"
    config.resque.server.port = 3000

[Rafael Mendonça França + Carlos Antonio da Silva]
2014-08-19 13:59:22 -03:00
David Heinemeier Hansson 611849772d Pull in the custom configuration concept from dhh/custom_configuration 2014-08-03 15:48:14 -07:00