aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Environment in engines tests is required on boot_rails, no need to require ↵Piotr Sarnacki2012-03-131-10/+0
| | | | | | | | explicitly
* | Don't need to share engine's tests anymore, plugins are gonePiotr Sarnacki2012-03-132-370/+359
| |
* | Ensure that engine can be mounted at root (#4314)Piotr Sarnacki2012-03-131-0/+54
|/ | | | | | | It's already fixed and the fix was actually in journey library, but with #4314 it reappeared second time, so probably this kind of integration test will be good to have to not allow it to sneak in after changes in journey or rails itself.
* Use the attributes hash explicitlyRafael Mendonça França2012-03-132-6/+26
|
* Do not use the attributes hash in the scaffold functional testsRafael Mendonça França2012-03-122-2/+9
|
* Merge pull request #5326 from lest/patch-2Michael Koziarski2012-03-101-4/+14
|\ | | | | configure how unverified request will be handled
| * configure how unverified request will be handledSergey Nartimov2012-03-091-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | can be configured using `:with` option in `protect_from_forgery` method or `request_forgery_protection_method` config option possible values: - :reset_session (default) - :exception new applications are generated with: protect_from_forgery :with => :exception
* | Fix broken testsSantiago Pastorino2012-03-101-1/+2
| |
* | Change api_only to http_onlyCarlos Antonio da Silva2012-03-101-2/+1
| | | | | | | | [Carlos Antonio da Silva & Santiago Pastorino]
* | Use one system call whenever possible, group rake and Dir.chdir callsCarlos Antonio da Silva2012-03-084-106/+98
| |
* | Merge pull request #5162 from kennyj/schema_cache_dumpAaron Patterson2012-03-072-0/+45
|\ \ | |/ |/| [Proposal] Schema cache dump
| * Support judgement expired schema cache dump.kennyj2012-03-011-0/+14
| |
| * Load db/schema_cache.dump duaring boot time.kennyj2012-03-011-0/+12
| |
| * Add db:schema:cache:dump and db:schema:cache:clear tasks.kennyj2012-03-011-0/+19
| |
* | Revert table_name= needs connection now, so just stub table_namekennyj2012-03-071-1/+1
| |
* | Add config.middleware.api_only!Carlos Antonio da Silva and Santiago Pastorino2012-03-051-0/+30
| |
* | Now all the models need to explicitly declare the accessible attributesRafael Mendonça França2012-03-041-0/+1
| |
* | Only add the whitelist_attributes option if ActiveRecord is presentRafael Mendonça França2012-03-042-1/+10
| |
* | Whitelist all attribute assignment by default.Michael Koziarski2012-03-051-0/+10
| | | | | | | | Change the default for newly generated applications to whitelist all attribute assignment. Also update the generated model classes so users are reminded of the importance of attr_accessible.
* | Fix tests, table_name= needs connection now, so just stub table_namePiotr Sarnacki2012-03-041-1/+1
| |
* | Handle files from ActionDispatch::Static with Rack::Sendfile (fixes #5225)Piotr Sarnacki2012-03-032-1/+14
|/ | | | | | | | This makes rails behave properly when you serve static assets and you have X-Sendfile headers enabled. Nevertheless in most cases you should not rely on that and serve static assets with a webserver like Apache or Nginx (as you already have it in place anyway if you use X-Sendfile)
* put and patch both are allowed for updateArun Agrawal2012-02-251-1/+7
|
* fixes a test: rake routes now includes PATCH for resourcesXavier Noria2012-02-241-0/+1
|
* uses PATCH for the forms of persisted records, and routes PATCH and PUT to ↵Xavier Noria2012-02-242-9/+0
| | | | the update action of resources
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-222-2/+50
| | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* Correctly print names of non-timestamped migrations with db:migrate:statusPeter Mitchell2012-02-171-1/+49
|
* Fix tests, Rails.env may be different on CIPiotr Sarnacki2012-02-161-2/+5
|
* Refactor Rails::Console to make it easier to test and add tests for itPiotr Sarnacki2012-02-161-0/+84
|
* Display annotations from .coffee files in `rake notes`Bartlomiej Kozal2012-02-051-10/+12
|
* Add convenience method to hide a generator from the available onesCarlos Antonio da Silva2012-02-032-1/+16
| | | | | | It is usually useful to be able to hide a generator when running rails generate command. Such generators might be used only to dry up generators code and shouldn't be available to end users.