aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5902 from avakhov/generator-no-indent-blank-linesJosé Valim2012-04-251-0/+8
|\ | | | | Don't indent blank lines in named base generators
| * Don't indent blank lines in named base generatorsAlexey Vakhov2012-04-251-0/+8
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-04-251-1/+1
|\ \ | |/ |/|
| * Remove lonely number signAlexey Vakhov2012-04-251-1/+1
| |
* | Clean up some straggling build failuresJose and Yehuda2012-04-241-7/+7
| |
* | Remove default match without specified methodJose and Yehuda2012-04-2414-68/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
* | `rake notes` and `rake notes:custom` now supportTeng Siong Ong2012-04-221-1/+7
|/ | | css, scss and css.
* Freeze the middleware stack after it's builtJeremy Kemper2012-04-202-17/+25
| | | | | | So apps that accidentally add middlewares later aren't unwittingly dumping them in a black hole. Closes #5911
* Fix testSantiago Pastorino2012-04-161-2/+2
|
* fix scaffold_generator_test.rb and model_generator_test.rbArun Agrawal2012-04-162-8/+6
| | | | Broken after this 6a054b0038bac288a1f6e45feb5470f4ee492081
* "rails new -h" shows message in rails directoryask2012-04-091-0/+10
|
* Fix a couple more script[type=text/javascript] tests affected by #5748Jeremy Kemper2012-04-082-8/+8
|
* Updated/changed useless tr/gsubsJurriaan Pruis2012-04-031-1/+1
|
* Usage file in generators shouldn't be fetched only based on source_rootPiotr Sarnacki2012-04-012-1/+5
| | | | | | | | In case `source_roout` is not set, `default_source_root` is used, which includes also `templates` directory. If there is no `templates` directory, `default_source_root` is not available and USAGE will not be displayed. USAGE should be also checked based on default directory excluding `templates`.
* Drop Paths::Root initializer check of #path as it isn't checked in the ↵Ben Woosley2012-03-291-4/+0
| | | | #path= or anywhere else
* Rails.initialized? can be called at any time without raising an exception ↵Franck Verrot2012-03-281-0/+10
| | | | | | | | | | [Closes #2507] Changes: * `Rails.initialized=` has been removed * `Rails.initialized?` and `Rails.application.initialized?` are now * delegating to `MyApp::Application.initialized?`
* favor composition over inheritanceAaron Patterson2012-03-261-1/+1
|
* Merge pull request #5550 from schneems/schneems/server_envAaron Patterson2012-03-232-0/+45
|\ | | | | Fix environment support for rails server, and match interface of rails console
| * match rails console environment support, to serverschneems2012-03-221-0/+19
| | | | | | | | rails server takes `-e` as an argument to specify RAILS_ENV, rails console currently does not have the same interface. This commit fixes this disparity so developers can manually specify `RAILS_ENV` or can pass in an environment with a `-e`.
| * fix rails server support of RAILS_ENV variableschneems2012-03-201-0/+26
| | | | | | | | | | | | | | When launching rails server from the command line with a rails environment specified such as `rails server RAILS_ENV=production` an error would occur since rails will try to use `RAILS_ENV=production` as it's server. When launching rails with a specified server such as thin `rails server thin RAILS_ENV=production` no error will be thrown, but rails will not start up in the specified environment. This fixes both of those cases
* | Fixed missing space bug introduces in ↵Anton Lindqvist2012-03-221-3/+4
| | | | | | | | rails/rails@9299bfdcd387253d83b645c205b8df477f2d0940.
* | Avoid another blank line in generated migration and remove assertion as per ↵Marcelo Silveira2012-03-211-1/+0
| | | | | | | | @spastorino request
* | Merge pull request #5532 from mhfs/migration_blank_lineJosé Valim2012-03-211-0/+1
|\ \ | | | | | | Remove blank line from generated migration
| * | Remove blank line from generated migrationMarcelo Silveira2012-03-201-0/+1
| |/
* / Generate Migration Thats Adds Removed IndexTravis Jeffery2012-03-211-0/+18
|/ | | | | When generating a migration that removes a field with an index, the down will add both the field and its index.
* Merge pull request #5492 from arunagw/build_fix_app_generator_testPiotr Sarnacki2012-03-181-1/+1
|\ | | | | Build fix for app_generator_test.rb
| * Build fix for app_generator_test.rbArun Agrawal2012-03-181-1/+1
| |
* | Merge pull request #5486 from kennyj/fix_5435Aaron Patterson2012-03-171-0/+12
|\ \ | |/ |/| Fix GH #5435. db:structure:dump should be re-enable.
| * Fix GH #5435. db:structure:dump should be reenable.kennyj2012-03-171-0/+12
| |
* | Rack::SSL -> ActionDispatch::SSLRafael Mendonça França2012-03-171-3/+3
|/
* Simplify helpers handling. Ensure Metal can run AC hooks.José Valim2012-03-151-1/+30
|
* Remove --http.José Valim2012-03-148-232/+0
|
* Fix scaffold controller template, ensure rake scaffold test pass by defaultCarlos Antonio da Silva2012-03-142-3/+29
|
* Do not generate app/views and sprockets entries on http appCarlos Antonio da Silva2012-03-141-1/+16
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Generate special controller and functional test templates for http appsCarlos Antonio da Silva2012-03-143-1/+53
| | | | | | | | | | | | The main goal is to not generate the format.html block in scaffold controller, and to generate a different functional test as we don't rely on redirects anymore, we should test for http responses. In addition to that, the :edit action is removed from the http controller and the edit route is not generated by default, as they usually do not make sense in this scenario. [Carlos Antonio da Silva & Santiago Pastorino]
* Rename http-only app generator option to httpCarlos Antonio da Silva2012-03-141-5/+5
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Add test to ensure setting config.generators.http_only actually disables the ↵Carlos Antonio da Silva2012-03-142-2/+15
| | | | | | generator options [Carlos Antonio da Silva & Santiago Pastorino]
* Allow generator configs from http_only! to be overriden by appCarlos Antonio da Silva2012-03-141-0/+15
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Remove duplicated tests from shared generatorCarlos Antonio da Silva2012-03-142-16/+2
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Disable template, helper and assets options when using http_only!Carlos Antonio da Silva2012-03-141-0/+18
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Create generators http_only! setup and hide some common namespaces for nowCarlos Antonio da Silva2012-03-141-0/+24
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Generate middleware http_only! config when running http only app generatorCarlos Antonio da Silva2012-03-141-0/+6
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Add http-only option to Rails app generatorCarlos Antonio da Silva2012-03-141-0/+10
| | | | | | | Change application controller template accordingly, to inherit from ActionController::HTTP and not generate protect_from_forgery call. [Carlos Antonio da Silva & Santiago Pastorino]
* Add ActionController::HTTPSantiago Pastorino2012-03-141-0/+27
| | | | | | More info http://edgeguides.rubyonrails.org/api_app.html [Carlos Antonio da Silva & Santiago Pastorino]
* Remove IdentityMapCarlos Antonio da Silva2012-03-131-7/+0
|
* The sprockets railtie was moved to sprockets/rails/railtieGuillermo Iguaran2012-03-131-1/+1
|
* Merge pull request #5415 from rafaelfranca/refactorJosé Valim2012-03-132-8/+8
|\ | | | | Refactor the test_unit scaffold generator to use the key_value method
| * Refactor the test_unit scaffold generator to use the key_value methodRafael Mendonça França2012-03-132-8/+8
| |
* | Merge pull request #572 from sikachu/remove_activeresourceJosé Valim2012-03-131-2/+1
|\ \ | | | | | | Remove Active Resource source files from the repository.
| * | Remove Active Resource source files from the repositoryPrem Sichanugrist2012-03-131-2/+1
| |/ | | | | | | | | | | | | | | | | | | Dear Active Resource, It's not that I hate you or anything, but you didn't get much attention lately. There're so many alternatives out there, and I think people have made their choice to use them than you. I think it's time for you to have a big rest, peacefully in this Git repository. I will miss you, @sikachu.