aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
Commit message (Collapse)AuthorAgeFilesLines
* Bring back the helpers testsJosé Valim2014-08-051-0/+39
| | | | | Also keep the hook as other tools may rely on it, we just don't do anything by default on Rails.
* A few more tests asserting the presence of helper test stubsDavid Heinemeier Hansson2014-08-034-12/+0
|
* Stubs are no longer generated for helpers, so dont test for itDavid Heinemeier Hansson2014-08-031-4/+0
|
* Generating stubs for helper tests is overly specific. Most helpers should ↵David Heinemeier Hansson2014-08-031-54/+0
| | | | simply be tested as part of the view thats using them. If you need something beyond that, you can add a test yourself for them
* Avoid defining the test if it does not need to when not on JRubyCarlos Antonio da Silva2014-07-301-2/+2
|
* Use default argument when testing generators without the need for extra argsCarlos Antonio da Silva2014-07-302-7/+7
|
* Simplify path setupCarlos Antonio da Silva2014-07-301-1/+1
|
* Simplify plugin tests a bit, leave the regexp work for minitestCarlos Antonio da Silva2014-07-301-6/+6
|
* Invert unless..else conditions on JRuby checksCarlos Antonio da Silva2014-07-302-12/+12
|
* Revert "Merge pull request #15305 from tgxworld/remove_unnecessary_require"Santiago Pastorino2014-07-302-2/+2
| | | | | | | This reverts commit f632f79b8dcd144408c66a544984b2ba9cf52f87, reversing changes made to 98c7fe87690ca4de6c46e8f69806e82e3f8af42d. Closes #16343
* Set Psych as the YAML engine for RubiniusRobin Dupret2014-07-231-0/+13
| | | | | | | | | | Since the rubysl-yaml gem doesn't ship with Psych by default because of its dependency on libyaml, on Rubinius, the default engine is Syck. However, if we want to be able to run the application safely on different rubies, we need to make people using Rubinius rely on Psych. See http://git.io/uuLVag for further information.
* Merge branch 'rm-remove-mocha'Rafael Mendonça França2014-07-194-0/+4
|\ | | | | | | | | Conflicts: actionpack/test/abstract_unit.rb
| * Stop requiring mocha automaticallyRafael Mendonça França2014-07-194-0/+4
| | | | | | | | | | | | | | | | | | | | | | We are planning to remove mocha from our test suite because of performance problems. To make this possible we should stop require mocha on ActionSupport::TestCase. This should not affect applications since users still need to add mocha to Gemfile and this already load mocha. Added FIXME notes to place that still need mocha removal
* | Keep quietly and capture undeprecated on your suiteRafael Mendonça França2014-07-153-2/+10
|/
* Display notice in index.html pages in scaffolded generated viewsArun Agrawal2014-07-042-1/+9
| | | | | | | | | As we are setting notice in destroy action we should display that For more information see https://github.com/rails/rails/pull/14044 And https://github.com/rails/jbuilder/pull/191 closes #14044
* Add a '--skip-routes' flag for the Controller generator.Lucas Mazza2014-06-241-0/+7
| | | | | This way it is possible to skip the addition of the 'get "foo/bar"' routes when generating a controller.
* Add a generic --skip-gems options to generatorRafael Mendonça França2014-06-171-2/+3
| | | | | | | | | | Also remove --skip-turbolinks. This option is useful if users want to remove some gems like jbuilder, turbolinks, coffee-rails, etc that don't have specific options on the generator. rails new my_app --skip-gems turbolinks coffee-rails
* Add an option to skip installation of TurbolinksMarc Schütz2014-06-141-0/+14
|
* Merge pull request #14881 from robin850/patch-19Yves Senn2014-06-011-5/+8
|\ | | | | Swallow bundler exceptions when running tests
| * Swallow bundler exceptions when running testsRobin Dupret2014-04-271-5/+8
| | | | | | | | Let's avoid useless output when testing stuff related to Bundler.
* | `bin/setup` script to bootstrap applications.Yves Senn2014-05-301-0/+1
| |
* | Merge pull request #15327 from alexbel/replace_double_quotes_with_single_quotesYves Senn2014-05-271-7/+15
|\ \ | | | | | | | | | Replace double quotes with single quotes while adding an entry into Gemfile
| * | Replace double quotes with single quotes while adding an entry into Gemfilealexbel2014-05-261-7/+7
|/ /
* | Remove unnecessary require of Minitest.Guo Xiang Tan2014-05-242-2/+2
| | | | | | | | Minitest has already been required when calling Minitest.autorun.
* | New applications should be created with json serializerRafael Mendonça França2014-05-171-0/+36
| | | | | | | | | | | | | | | | | | | | | | The fix introduced at 75ba7425f6d235f254c00a45a58f42e88f80301a were missing this case. To fix the original issue mentioned at that commit the correct is to remove update_config_files from the command list since we should not run both config_files command when creating a new application. Tests were added to make sure everything is working fine.
* | Fix app generator test hanging.Christian Wesselhoeft2014-05-171-2/+2
| |
* | Change Gemfile’s double quotes in plugin generatorJosemar Luedke2014-05-101-4/+4
| | | | | | | | | | Since the generated application’s Gemfile is using single quotation marks, it seems fair to use it on plugin’s Gemfile as well.
* | rename `str` to `string` to fix overshadowing of variableVipul A M2014-05-071-1/+1
| |
* | skip-git should not hit git commands plugin generatorsArun Agrawal2014-05-021-8/+18
| |
* | Works correctly if git not installedRoman Shmatov2014-05-021-0/+24
|/
* Merge pull request #14646 from deivid-rodriguez/provide_byebug_by_defaultRafael Mendonça França2014-04-112-4/+10
|\ | | | | Improve debugging support
| * Update Gemfile templates to provide correct debuggerDavid Rodríguez de Dios2014-04-082-4/+10
| |
* | Move assets precompile (and version) to an initializerMatthew Draper2014-04-111-1/+1
| | | | | | | | | | sprockets-rails 2.1 needs the precompile list to be available in all environments.
* | Use short-form for the scaffold render calls and drop the needless testDavid Heinemeier Hansson2014-04-081-7/+0
|/
* Fix build with bundler 1.6Rafael Mendonça França2014-03-261-1/+1
|
* Fix Generation of proper migration whenKuldeep Aggarwal2014-03-251-0/+50
| | | | | | | | | | | | ActiveRecord::Base.pluralize_table_names = false. Previously, generation a migration like this: rails g migration add_column_name_to_user name would not generating the correct table name. Fixes #13426.
* Check if any sqlite files are not included in the gitignoreRafael Mendonça França2014-03-241-2/+2
| | | | | If the sqlite file name change in future version we this regexp should catch
* Remove sqlite3 lines from .gitignore if the application is not using sqlite3.Dmitrii Golub2014-03-241-1/+25
|
* better test error messagesschneems2014-03-141-4/+4
|
* Merge pull request #14195 from robin850/issue-14079Guillermo Iguaran2014-02-281-0/+12
|\ | | | | Avoid namespacing routes inside engines
| * Avoid namespacing routes inside enginesRobin Dupret2014-02-261-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Since #11544, invoking the controller generator, any generated route is namespaced according to the class_path method. Since a mountable plugin is namespaced, creating a controller inside would generate a namespaced route based on the engine's name. The controller generator now relies on regular_class_path which does not contain the class hierarchy but the given path. Fixes #14079.
* | Merge pull request #14174 from kuldeepaggarwal/fix-resource_generator_testYves Senn2014-02-272-4/+4
|\ \ | | | | | | fix test cases
| * | modify model generator warning message. refs [#174c9f0]Kuldeep Aggarwal2014-02-272-4/+4
| |/
* | Remove inclusion of rubysl gem for rbx on generated GemfileCarlos Antonio da Silva2014-02-251-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | From #14026: Specific rbx-2 to limit testing on Rubinius 2.x (since there will be other versions of Rubinius > 2.x soon). Also, as of Rubinius 2.2.5, it is no longer necessary to bundle the rubysl gem. This is what Rails master/4.1 supports, so we don't need to add rubysl to gemfiles anymore.
* | [skip ci] Fix test name typo in app generator tests.Spencer Rogers2014-02-251-1/+1
|/
* build fix. follow up to 174c9f0df39cd338a4871f82794256cc64f68a81Yves Senn2014-02-241-1/+1
|
* include names in model generator warning message. refs #13515.Yves Senn2014-02-241-1/+1
| | | | | | This is a follow up to #13515. It includes the name given and the singularized version in the warning message. This will aide the user to see wether the detected singular was right or not.
* Add warning when user tried to create model with pluralize name.Kuldeep Aggarwal2014-02-232-1/+8
| | | | | 1. Generate model with correct_name. 2. It will help new users to avoid mistakes when tried to create model with wrong name.
* remove railties changes. fixes #14054Aaron Patterson2014-02-142-68/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 96991e8e919edfb20cc4120bca4e36ed51175d57 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:29:24 2014 -0800 Revert "gems can be added or skipped from the template" This reverts commit 8beb42cfbc41753ae4dbb91e16abcd1fb7d00356. Conflicts: railties/lib/rails/generators/rails/app/app_generator.rb railties/test/generators/app_generator_test.rb commit 35599c0e657245ef14ac0f28c9189ad16acf40e6 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:26:53 2014 -0800 Revert "oops, template replay needs to happen after bundle. :orz:" This reverts commit 9104702be61253f9448ca070a22fc86bb4299555. Conflicts: railties/lib/rails/generators/rails/app/app_generator.rb commit f519c3902c313db8e906a49251c91643b8e6499e Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:25:51 2014 -0800 Revert "only ask for these ivars if the target responds to them" This reverts commit 656d412546cd97d5660c634c2a41c799d3f9e211. commit aa524a9428e3e4c45fe221f10a66a08efb827ab5 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:25:39 2014 -0800 Revert "refactor generator tests to use block form of Tempfile" This reverts commit 65251820ef0ab7f3cffb38130de3dd41af8d72be. commit 7d3740549fa4dfa62e3761f8d4bc6d6d441256e7 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:25:25 2014 -0800 Revert "add a more restricted codepath for templates fixes #13390" This reverts commit 2875b4a66e38e4333da887a4afbed33358999298. commit 525df0af1001918986cdfce59539fd2d52c4f32c Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:25:11 2014 -0800 Revert "add a send so `apply` can be called. Fixes #13510" This reverts commit c5034d60dba0cd31a6a8c612ee35d63b8127793a.
* fix path shown in mailer's templatesKassio Borges2014-02-141-4/+4
|