aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/generators_test_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Reset `ActiveRecord::Base.configurations` to the value beforeyuuji.yaginuma2018-09-291-1/+2
|
* Refactor migrations_path command option to databaseGannon McGibbon2018-09-281-0/+14
|
* Use .tt extension to all the template filesRafael Mendonça França2017-11-131-2/+2
| | | | | | | | Make clear that the files are not to be run for interpreters. Fixes #23847. Fixes #30690. Closes #23878.
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Define path with __dir__bogdanvlviv2017-05-231-2/+2
| | | | | | ".. with __dir__ we can restore order in the Universe." - by @fxn Related to 5b8738c2df003a96f0e490c43559747618d10f5f
* applies remaining conventions across the projectXavier Noria2016-08-061-1/+0
|
* applies new string literal convention in railties/testXavier Noria2016-08-061-11/+11
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Cleaned up generators tests using internal assertion helperRonak Jangir2015-08-201-0/+2
|
* - Extracted silence_stream method to new module in activesupport/testing.Vipul A M2015-01-201-17/+3
| | | | | | | | | | | | - Added include for the same in ActiveSupport::Test. - Removed occurrences of silence_stream being used elsewhere. - Reordered activesupport testcase requires alphabetically. - Removed require of silence stream from test_case - Moved quietly method to stream helper - Moved capture output to stream helper module and setup requires for the same elsewhere
* Use IO::NULL alwaysNobuyoshi Nakada2015-01-101-1/+1
|
* Remove deprecated methods at `Kernel`.Rafael Mendonça França2015-01-041-0/+10
| | | | `silence_stderr`, `silence_stream`, `capture` and `quietly`.
* Rails.root should be a PathnameAkira Matsuda2014-08-281-1/+1
|
* Simplify path setupCarlos Antonio da Silva2014-07-301-1/+1
|
* Keep quietly and capture undeprecated on your suiteRafael Mendonça França2014-07-151-0/+8
|
* Fix method redefinition warningAndrew White2013-12-171-2/+6
|
* Missing AV requires in railties testsŁukasz Strzałkowski2013-08-251-0/+1
|
* Using load_generatorsArun Agrawal2011-05-251-1/+1
|
* Streamline generators initialization flow.José Valim2011-05-251-1/+1
|
* Removing redundant File.expand_path from generators testVinicius Baggio2011-02-231-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Generators are not aware of namespace of isolated engines and applicationsPiotr Sarnacki2010-09-241-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Still copy application configuration to generator even if they are required ↵José Valim2010-06-021-2/+5
| | | | earlier. Also tidy up the guide a little bit.
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-231-1/+1
| | | | former since it's less obstrusive.
* Controller generator now creates routes as well [#4233 state:resolved]José Valim2010-03-191-0/+7
|
* Add config.generators.templates to provide alternative paths for template ↵José Valim2010-02-061-0/+1
| | | | lookup.
* Automatically configure generators if application is defined.José Valim2010-01-291-1/+1
|
* Fix the test_framework generator testsCarl Lerche2010-01-281-1/+1
|
* Get generators tests running on Ruby 1.9.1José Valim2010-01-191-11/+10
|
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-181-1/+0
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER.José Valim2010-01-131-2/+0
|
* Bring generators tests back to life.José Valim2010-01-041-0/+4
|
* Move all generators tests to use new test case syntax.José Valim2010-01-031-2/+4
|
* Create Rails::Generators::TestCase.José Valim2010-01-031-83/+7
|
* Remove --freeze (since Rails will come bundled in all new apps) and update ↵José Valim2009-11-031-1/+1
| | | | | | gem action to change Gemfile instead of config.environment. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ensure that generators can be invoked from any directory.José Valim2009-11-021-5/+10
| | | | Signed-off-by: Engine Yard <engineyard@Engine-Yards-MacBook-Pro.local>
* CI breakageYehuda Katz2009-11-021-8/+3
| | | | This reverts commit a288b74f1c75c6f100de7611a5093a421f1ad6d1.
* Generators should use Rails.root instead of Dir.pwd [#3408 status:resolved]José Valim2009-10-281-3/+8
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the ↵Carl Lerche2009-10-161-17/+3
| | | | application's object root)
* Finish porting over the initializers to the app object and fix all the testsCarl Lerche2009-10-141-2/+7
|
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-1/+1
|
* Require rubygems in generators test so Action Dispatch can find rackJeremy Kemper2009-09-141-1/+3
|
* Fix deprecated gem-name requiresJeremy Kemper2009-09-141-1/+1
|
* Use less strict rules in generators lookup, so people can lay their ↵José Valim2009-08-101-2/+5
| | | | generators wherever they want.
* Allow rails templates relative to the current path to be given.José Valim2009-08-071-1/+1
|
* Change false to :verbose => false as in new Thor version.José Valim2009-07-151-0/+1
|
* Refactored some generators to make use of improved invocations on thor.José Valim2009-07-151-6/+5
|
* Make specs pass on Ruby 1.9.José Valim2009-07-061-1/+7
|
* More tests for rails generators and lookup.José Valim2009-07-031-3/+3
|
* Removed remaining old generators files.José Valim2009-07-031-1/+7
|