Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Deal with leading CR when its not a mountable engine | David Heinemeier Hansson | 2015-12-17 | 1 | -1/+1 |
| | |||||
* | Update test generators to use ActionDispatch::IntegrationTest | Abdelkader Boudih | 2015-12-15 | 2 | -20/+22 |
| | | | | | | | | | | | | In Rails 5.1 `ActionController::TestCase` will be moved out of Rails into it's own gem. Please use `ActionDispatch::IntegrationTest` going forward. This changes the generators to use `ActionDispatch::IntegrationTest` and the required URL setup (rather than symbols) for each of the controller actions. Updated fix to #22076. | ||||
* | Revert "Merge pull request #22569 from seuros/remove-test-case" | eileencodes | 2015-12-13 | 2 | -15/+14 |
| | | | | | | | | | This reverts commit 9712a7a12b7f9e4dcef751ceda8a73c3f4beb11f, reversing changes made to 3e65c3d3886336e9145438cdeacaf4ebec6a48b8. Reverting because this caused test failures and while we have a followup branch there is still one failure that happens randomly and isn't straight forward to fix. | ||||
* | Controller generators should be creating IntegrationTest stubs instead of ↵ | Abdelkader Boudih | 2015-12-13 | 2 | -14/+15 |
| | | | | ControllerTest | ||||
* | make generated scaffold functional tests work inside API engines | yuuji.yaginuma | 2015-08-09 | 1 | -1/+4 |
| | | | | | * set engine's route in setup * use fixture with engine namespace | ||||
* | fix NoMethodError that occurs when generating scaffold inside full mode engine | yuuji.yaginuma | 2015-06-28 | 2 | -2/+2 |
| | |||||
* | assigns was removed from Rails | Rafael Mendonça França | 2015-06-11 | 1 | -1/+0 |
| | |||||
* | Make Rails API apps return the full resource on update | Santiago Pastorino | 2015-06-11 | 1 | -1/+1 |
| | |||||
* | Fix class_option description for api generators | Santiago Pastorino | 2015-06-11 | 1 | -1/+1 |
| | |||||
* | API apps scaffold generator generates an apropriate controller | Santiago Pastorino | 2015-06-11 | 2 | -1/+46 |
| | |||||
* | Merge pull request #20387 from y-yagi/fix_engine_generated_controller_test | Yves Senn | 2015-06-02 | 2 | -1/+13 |
|\ | | | | | | | set engine's route in the functional test is generated in the engine | ||||
| * | add engine's namespace to fixture name | yuuji.yaginuma | 2015-05-31 | 2 | -1/+10 |
| | | |||||
| * | set engine's route in the functional test is generated in the engine | yuuji.yaginuma | 2015-05-31 | 1 | -0/+3 |
|/ | |||||
* | Removed `assigns` from functional_test templates | Prathamesh Sonpatki | 2015-05-02 | 1 | -3/+2 |
| | | | | | - Based on DHH's suggestion about deprecating `assigns` in https://github.com/rails/rails/pull/18305#issuecomment-68605166. | ||||
* | scaffold controller_test template should use kwargs. refs #18323. | Yves Senn | 2015-01-30 | 1 | -5/+5 |
| | | | | This prevents a flood of warnings when generating a new scaffold. | ||||
* | Add support for generate scaffold password:digest | Sam Ruby | 2013-03-13 | 1 | -1/+5 |
| | | | | | | | | | | * 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 | ||||
* | test PATCH method for update action in generated scaffold controller test ↵ | Akira Matsuda | 2013-01-03 | 1 | -1/+1 |
| | | | | rather than PUT | ||||
* | Extract a attributes_names method to avoid duplication | Rafael Mendonça França | 2012-12-10 | 1 | -12/+4 |
| | |||||
* | Deal with polymorphic attributes correctly in the generators | Rafael Mendonça França | 2012-12-10 | 1 | -5/+11 |
| | |||||
* | Put the reference and belongs_to attributes in the scaffold tests. | Rafael Mendonça França | 2012-12-10 | 1 | -6/+3 |
| | |||||
* | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-10-11 | 1 | -3/+3 |
|\ | | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb | ||||
| * | nodoc TestUnit::Generators [ci skip] | Francesco Rodriguez | 2012-10-07 | 1 | -3/+3 |
| | | |||||
* | | Update test locations | Mike Moore | 2012-10-09 | 1 | -1/+1 |
|/ | | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional) | ||||
* | Remove unused generator options. This was added for the removed rails new --http | Santiago Pastorino | 2012-04-18 | 1 | -3/+0 |
| | |||||
* | Remove --http. | José Valim | 2012-03-14 | 2 | -54/+2 |
| | |||||
* | Generate special controller and functional test templates for http apps | Carlos Antonio da Silva | 2012-03-14 | 2 | -1/+56 |
| | | | | | | | | | | | | 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] | ||||
* | Remove key_value helper now that master is 1.9 only and we always use | Rafael Mendonça França | 2012-03-13 | 2 | -10/+6 |
| | | | | the 1.9 hash syntax in the generators. | ||||
* | Refactor the test_unit scaffold generator to use the key_value method | Rafael Mendonça França | 2012-03-13 | 1 | -1/+1 |
| | |||||
* | Use the attributes hash explicitly | Rafael Mendonça França | 2012-03-13 | 2 | -6/+18 |
| | |||||
* | Do not use the attributes hash in the scaffold functional tests | Rafael Mendonça França | 2012-03-12 | 2 | -2/+11 |
| | |||||
* | Remove needless to_param in scaffold functional test | Alexey Vakhov | 2011-10-24 | 1 | -4/+4 |
| | |||||
* | Rails will now generate Ruby 1.9 style hash when running scaffold_controller ↵ | Prem Sichanugrist | 2011-04-10 | 1 | -5/+5 |
| | | | | | | | | generator on Ruby 1.9.x The new hash syntax of Ruby 1.9 looks more superior, so we decide to switch to it in the places that appropriate. This patch has been requested by DHH. | ||||
* | Fix scaffold generator to be aware of namespace in isolated engine | Piotr Sarnacki | 2010-11-03 | 1 | -0/+2 |
| | |||||
* | Remove the --singeleton option from scaffold generator. | Prem Sichanugrist | 2010-06-24 | 2 | -3/+0 |
| | | | | | | | | It turned out to be that scaffold for singeleton resource will always depend on another model, and it's not possible at the moment to make the application tests pass after generate the singeleton scafold. So, it would be better to remove it for now and probably provide another generator, such as singeleton_scaffold, in which also require the depended model name. [#4863 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Patch for Namespace problem in Scaffold. [#4763 state:resolved] | Mohammed Siddick.E | 2010-06-23 | 1 | -12/+12 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵ | Andrew White | 2010-06-20 | 1 | -1/+1 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Load generators from both lib/rails/generators and lib/generators. Using the ↵ | José Valim | 2010-03-23 | 2 | -0/+69 |
| | | | | former since it's less obstrusive. | ||||
* | Generators load path now will be Ruby load path. If you want to use ↵ | José Valim | 2010-01-18 | 2 | -65/+0 |
| | | | | rspec:install generator, you need generators/rspec/install_generator in your load path. | ||||
* | Merge | David Heinemeier Hansson | 2010-01-03 | 1 | -2/+2 |
| | |||||
* | Move railties/lib/* into railties/lib/* | Yehuda Katz + Carl Lerche | 2009-09-24 | 2 | -0/+65 |