aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Merge pull request #9401 from sikachu/master-remove-builder-optionRafael Mendonça França2013-02-243-118/+0
|\ | | | | Remove `--builder` option from `rails` command
| * Remove `--builder` option from `rails` commandPrem Sichanugrist2013-02-243-118/+0
| | | | | | | | | | | | | | Ability to use a custom builder by passing `--builder` (or `-b`) has been removed. Consider using application template instead. See this guide for more detail: http://guides.rubyonrails.org/rails_application_templates.html
* | remove AR auto-explain (config.auto_explain_threshold_in_seconds)Yves Senn2013-02-241-9/+0
|/ | | | | | | | | | We discussed that the auto explain feature is rarely used. This PR removes only the automatic explain. You can still display the explain output for any given relation using `ActiveRecord::Relation#explain`. As a side-effect this should also fix the connection problem during asset compilation (#9385). The auto explain initializer in the `ActiveRecord::Railtie` forced a connection.
* Gist URLs are now namespacedAkira Matsuda2013-02-181-3/+3
| | | | see: https://github.com/blog/1406-namespaced-gists
* Added notice message for destroy method in scaffoldRahul P. Chaudhari2013-02-101-0/+1
|
* --no-rc in the railties testsAkira Matsuda2013-02-011-1/+1
| | | | so that the tester's local .railsrc file does not affect the test results
* Fixes improper database name when a '.' is included while creating a new railsJeremy W. Rowe2013-01-161-0/+5
| | | | | | application. EG: `rails new something.awesome.com` Conflicts: railties/CHANGELOG.md
* More consistent quotes in scaffold generatorPavel Pravosud2013-01-111-1/+1
|
* Include jbuilder by default and rely on its scaffold generator to show json ↵David Heinemeier Hansson2013-01-102-24/+1
| | | | API. The default scaffold will now just create HTML if the user actively opts out of jbuilder
* remove performance tests from the default stackYves Senn2013-01-101-3/+0
|
* extract PerformanceTest into rails-performance_tests gemYves Senn2013-01-101-12/+0
|
* Fix readme testsCarlos Antonio da Silva2013-01-071-2/+2
| | | | Related to the change introduced in 6cf47c533d7d6784d34fc31406a335555e0c32b8.
* doc/README_FOR_APP is no longer generatedXavier Noria2013-01-081-1/+0
|
* Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. ↵Jeremy Kemper2013-01-064-10/+12
| | | | Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
* Make sure assets is disable when --skip-sprockets is usedRafael Mendonça França2013-01-051-1/+2
|
* config.assets.enabled is now true by defaultDavid Heinemeier Hansson2013-01-051-1/+0
|
* fix failing test broken in 15fb7889c5566ddade1d8f74f49bbbc1c0be6057Akira Matsuda2013-01-051-1/+1
|
* Merge pull request #8705 from amparo-luna/change_update_attributes_to_updateGuillermo Iguaran2013-01-032-3/+3
|\ | | | | Rename update_attributes method to update
| * Updating default application templates to use update instead of ↵Amparo Luna + Guillermo Iguaran2013-01-032-3/+3
| | | | | | | | update_attributes
* | test PATCH method for update action in generated scaffold controller test ↵Akira Matsuda2013-01-032-4/+4
|/ | | | rather than PUT
* Revert "Install binstubs by default"Jeremy Kemper2012-12-281-3/+3
| | | | | | This reverts commit f34c27a452418d8aa17f92bb0fd7ae97b5f7e252. We'll be taking a different tack on this with new `bundle binstubs <gem>` support.
* Revert "Detect rbenv and update the shebang"Jeremy Kemper2012-12-281-10/+0
| | | | | This reverts commit 7173c4f931c9026bd3bc0b644d93dae744433f09. This reverts commit a562f9fa09967eba26dff1c3bc8aa85b6f0a72ff.
* Consistent use of single and double quotesRafael Mendonça França2012-12-261-10/+10
|
* quote column names in generated fixture filesYves Senn2012-12-261-3/+26
|
* Add --no-html to scaffold generatorYehuda Katz2012-12-222-0/+17
|
* Detect rbenv and update the shebangYehuda Katz2012-12-221-0/+10
|
* Install binstubs by defaultYehuda Katz2012-12-221-3/+3
|
* Migration generators use `change` even for destructive methods [#8267]Marc-Andre Lafortune2012-12-211-31/+12
|
* Simple replacement of variable name for consistencyMarc-Andre Lafortune2012-12-211-32/+32
|
* update concerned testsFrancesco Rodriguez2012-12-181-0/+2
|
* Fixed test names for generated_attribute_test.rbArun Agrawal2012-12-131-1/+1
|