aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
Commit message (Collapse)AuthorAgeFilesLines
* application template respects Gemfile entriesAaron Patterson2013-11-041-0/+20
|
* gems can be added or skipped from the templateAaron Patterson2013-11-042-0/+27
|
* No web-console for nowArun Agrawal2013-11-031-5/+0
|
* Passing args for gemfile entryArun Agrawal2013-11-011-1/+1
| | | | Fixing build
* gemfile entries can be added to the app builderAaron Patterson2013-10-311-0/+35
|
* forgot to add the test. orz :cry:Aaron Patterson2013-10-311-0/+50
|
* add a test for whitespace separated args in the rc fileAaron Patterson2013-10-301-0/+16
|
* there is no reason for ARGV[0] to be nilAaron Patterson2013-10-301-2/+2
|
* add a comment to people of the futureAaron Patterson2013-10-301-1/+5
|
* adding a test for --help defaultsAaron Patterson2013-10-301-0/+7
|
* change the test to make argv a little more realisticAaron Patterson2013-10-301-7/+6
|
* adding a test for the current behaviorAaron Patterson2013-10-301-0/+18
|
* add a test for the rc commandline optionAaron Patterson2013-10-301-0/+18
|
* remove useless assertionsAaron Patterson2013-10-301-2/+0
|
* test some of the rc specificationAaron Patterson2013-10-301-3/+43
|
* forgot the test, oops!Aaron Patterson2013-10-301-0/+36
|
* Fixed tests for app_generatorArun Agrawal2013-10-271-2/+13
| | | | | | Added test for jbuilder and web-console inclusion. Added README.rdoc for test default files
* Removal of javascript related gems when creating an appRobin Dupret2013-10-271-5/+7
| | | | | | | | | Commit 0417bc8 add the coffee-rails and javascript runtime gems even when passing the --skip-javascript option but this is not the desired behavior. Also remove all javascript related stuff in the generated application such as the vendor/assets/javascripts folder.
* Make the application name snake cased when it contains spacesRobin Dupret2013-10-221-0/+10
| | | | | | | | | | | | | The application name is used to fill the `database.yml` and `session_store.rb` files ; previously, if the provided name contained whitespaces, it led to unexpected names in these files. Since Shellwords.escape adds backslashes to escape spaces, the app_name should remove them and replace any space with an underscore (just like periods previously). Also improve the assert_file helper to work with paths containing spaces using String#shellescape.
* Added --model-name option scaffold_controller_generator.yalab2013-10-152-0/+28
|
* Don't require using application_name before optionsPiotr Sarnacki2013-09-131-5/+0
| | | | | | | | | | | | Before this commit options for `rails new` and `rails plugin new` had to be passed in a strict order, trying to execute a following command: rails new -J path/to/app resulted in an error. This commit fixes the situation and allows to pass path to app anywhere after `new`
* Fix typo in generators test helpr -> helper [ci skip]Prathamesh Sonpatki2013-08-301-1/+1
|
* Add --skip-action-view to app generatorŁukasz Strzałkowski2013-08-251-0/+5
|
* Missing AV requires in railties testsŁukasz Strzałkowski2013-08-251-0/+1
|
* Fix the indentation on the from template of the scaffold generatorRafael Mendonça França2013-08-191-2/+2
|
* Generate namespaced routes correctly for generators. Fix for #11532Prathamesh Sonpatki2013-08-141-0/+5
|
* Use GeneratedAttribute#column_name if #reference? scaffold_generator in ↵Zachary Scott2013-07-231-0/+24
| | | | _form view [Fixes #11573]
* Stop reading the same file twice for testing different contentCarlos Antonio da Silva2013-07-221-8/+4
| | | | | assert_file already gives this functionality for free by passing multiple contents.
* Added generated unit test for generator generator and new test:generators ↵Josef Šimánek2013-07-161-0/+16
| | | | rake task included in test:all rake task.
* s/plugin_new/pluginschneems2013-06-301-2/+2
| | | | | There are historical reasons that the `plugin` command was `plugin_new`, now those are no longer applicable, we should remove the naming edge case from the project. This PR is based off of comments from #11176 ATP Railties
* Omit turbolinks configuration completely on skip_javascript generator optionNikita Fedyashev2013-06-281-3/+8
|
* Merge pull request #10527 from zenspider/squishy_minitest5Aaron Patterson2013-05-161-2/+2
|\ | | | | Squishy minitest5
| * Updates to make rails 4 happy with minitest 5:Ryan Davis2013-05-061-2/+2
| | | | | | | | | | | | | | | | | | | | + Namespace changes, overhaul of runners. + Internal ivar name changes - Removed a logger globally applied to tests that spew everywhere?!? + Override Minitest#__run to sort tests by name. + Reworked testing isolation to work with the new cleaner architecture. - Removed a bunch of tests that just test minitest straight up. I think these changes were all merged to minitest 4 a long time ago. - Minor report output differences.
* | Removed jruby-openssl gem from default template GemfileJoe Kutner2013-05-101-3/+0
| |
* | Fix Typo existant -> existent [ci skip]Prathamesh Sonpatki2013-05-081-2/+2
|/
* Fixes warning 'method redefined' in scaffold generators testsPrathamesh Sonpatki2013-05-051-4/+4
| | | | | | | | | | | | - f1805a697831 Redefined 'test_scaffold_generator_no_assets' twice. - Only the last instance of these three definitions of the same method was getting called when the tests were actually running. - This commit changes names of this method so that all three definitions will be called - scaffold.css is not generated by --assets=false switch. - Test was expecting the presence of the file with --assets=false - This issue was not discovered in f1805a697831b because it was redefining the same method twice
* Fixes Scaffold generator with --assets=falseArun Agrawal2013-05-041-0/+14
| | | | | | Scaffold generator with --assets=false option outputs an error See #9525
* generate 'app/assets/images' directory when creating new rails appNihad Abbasov2013-05-041-0/+5
|
* Removing the app constant and replacing it with Rails.applicationwangjohn2013-04-302-4/+4
| | | | | syntax. This helps removing the class level abstraction of an application.
* Fix some railties test warningsVipul A M2013-04-031-1/+1
|
* Merge pull request #9978 from trevorturk/cookie-store-auto-upgradeSantiago Pastorino2013-04-011-1/+1
|\ | | | | Cookie-base session store auto-upgrade
| * Allow transparent upgrading of legacy signed cookies to encrypted cookies; ↵Trevor Turk2013-03-281-1/+1
| | | | | | | | Automatically configure cookie-based sessions to use the best cookie jar given the app's config
* | be lazy loading SDocXavier Noria2013-03-301-0/+5
|/
* Fix jquery-as-default test to account for switch from gem to github source ↵Jeremy Kemper2013-03-251-1/+1
| | | | in #9904
* Put coffee-rails in top-level of generated GemfileGabe Kopley2013-03-241-1/+4
| | | | v3 of pull request based on additional feedback from @jeremy
* remove references to *::VERSION, replace with *.versionCharlie Somerville2013-03-211-2/+2
|
* Don't generate a scaffold.css if no-assetsKevin Glowacz2013-03-201-1/+1
|
* Add support for generate scaffold password:digestSam Ruby2013-03-131-0/+41
| | | | | | | | | | * adds password_digest attribute to the migration * adds has_secure_password to the model * adds password and password_confirmation password_fields to _form.html * omits password entirely from index.html and show.html * adds password and password_confirmation to the controller * adds unencrypted password and password_confirmation to the controller test * adds encrypted password_digest to the fixture
* Support creating a table migration generatorSammy Larbi2013-03-011-3/+14
| | | | | | | | | | | | | | | | Sometimes you want to create a table without an associated model and test, which is also not a join table. With this commit, you can now do that. Example: rails g migration create_posts title:string or rails g migration CreatePosts title:string This commit also moves the template the model generator uses for the migration to the migration templates folder, as it seems a more sensible place for it now that it is shared code.
* Ensure plugins generated with plugin new can boot the dummy applicationJosé Valim2013-02-281-39/+16
|