Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update test generators to use ActionDispatch::IntegrationTest | Abdelkader Boudih | 2015-12-15 | 1 | -10/+10 |
| | | | | | | | | | | | | 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 | 1 | -4/+4 |
| | | | | | | | | | 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 | 1 | -4/+4 |
| | | | | ControllerTest | ||||
* | make generated scaffold functional tests work inside API engines | yuuji.yaginuma | 2015-08-09 | 1 | -0/+28 |
| | | | | | * set engine's route in setup * use fixture with engine namespace | ||||
* | make test runner work correctly inside engine | yuuji.yaginuma | 2015-07-12 | 1 | -2/+2 |
| | |||||
* | fix NoMethodError that occurs when generating scaffold inside full mode engine | yuuji.yaginuma | 2015-06-28 | 1 | -0/+14 |
| | |||||
* | Fix scaffold generator test for resource routes | Santiago Pastorino | 2015-06-11 | 1 | -1/+1 |
| | |||||
* | Api apps scaffold does not generate assets | Santiago Pastorino | 2015-06-11 | 1 | -1/+6 |
| | |||||
* | Api apps scaffold does not generate helpers | Santiago Pastorino | 2015-06-11 | 1 | -1/+4 |
| | |||||
* | Api apps scaffold does not generate views | Santiago Pastorino | 2015-06-11 | 1 | -1/+8 |
| | |||||
* | Add api scaffold test for route, controller and its tests | Santiago Pastorino | 2015-06-11 | 1 | -0/+55 |
| | |||||
* | add option to avoid generating scaffold.css | masarakki | 2015-06-09 | 1 | -0/+14 |
| | |||||
* | add test to run generated test files inside mountable engine | yuuji.yaginuma | 2015-06-02 | 1 | -0/+14 |
| | |||||
* | Force generated route to be inserted | Andrew White | 2015-02-05 | 1 | -0/+5 |
| | | | | | | | Thor isn't very discerning over whether some content is present when passed to `inject_into_file`, e.g. a commented out route is detected as being present. So to prevent people scratching their heads as to why a route hasn't appeared it's better to fall on the side of having duplicate routes. | ||||
* | Don't remove all line endings from routes.rb | Andrew White | 2015-02-03 | 1 | -0/+18 |
| | | | | | | | | | | | | When there is a single scaffold in the routes.rb with no other lines then revoking/destroying it will create a routes.rb file with a syntax error. This is because the sentinel for the Thor `route` action didn't include the newline but the logged route code did. The fix is to add the newline to the sentinel and remove it from the the logged route code. Fixes #15913. | ||||
* | build fix II, adjust broken tests as a consequence of 670ac73126. | Yves Senn | 2015-01-30 | 1 | -4/+4 |
| | |||||
* | Improve the matches on the scaffold generator tests | Carlos Antonio da Silva | 2015-01-03 | 1 | -9/+8 |
| | | | | Related to #13434. | ||||
* | Merge pull request #13434 from tanraya/local_variables | Carlos Antonio da Silva | 2015-01-03 | 1 | -0/+11 |
|\ | | | | | | | | | | | | | Use local variables in _form.html.erb generated by scaffold. Conflicts: railties/CHANGELOG.md | ||||
| * | Use local variables in _form.html.erb generated by scaffold generator. | tanraya | 2014-07-26 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | It seems a good idea to use local variables in generated partials instead of using instance variables. Before <%= render 'form' %> After <%= render 'form', product: @product %> | ||||
* | | Remove warnings | Carlos Antonio da Silva | 2015-01-02 | 1 | -2/+2 |
| | | | | | | | | | | warning: ambiguous first argument; put parentheses or a space even after `/' operator'` | ||||
* | | Verify the helper name with plural as it is generated | Carlos Antonio da Silva | 2015-01-02 | 1 | -1/+1 |
| | | | | | | | | Thanks @robin850. | ||||
* | | Fix scaffold generator with --helper=false option | Rafael Mendonça França | 2015-01-01 | 1 | -0/+14 |
| | | |||||
* | | Fix test description to match the test behaviour | Rafael Mendonça França | 2015-01-01 | 1 | -1/+1 |
| | | |||||
* | | Stubs are no longer generated for helpers, so dont test for it | David Heinemeier Hansson | 2014-08-03 | 1 | -4/+0 |
|/ | |||||
* | Fix the indentation on the from template of the scaffold generator | Rafael Mendonça França | 2013-08-19 | 1 | -2/+2 |
| | |||||
* | Use GeneratedAttribute#column_name if #reference? scaffold_generator in ↵ | Zachary Scott | 2013-07-23 | 1 | -0/+24 |
| | | | | _form view [Fixes #11573] | ||||
* | Fixes warning 'method redefined' in scaffold generators tests | Prathamesh Sonpatki | 2013-05-05 | 1 | -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=false | Arun Agrawal | 2013-05-04 | 1 | -0/+14 |
| | | | | | | Scaffold generator with --assets=false option outputs an error See #9525 | ||||
* | Don't generate a scaffold.css if no-assets | Kevin Glowacz | 2013-03-20 | 1 | -1/+1 |
| | |||||
* | Add support for generate scaffold password:digest | Sam Ruby | 2013-03-13 | 1 | -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 | ||||
* | Include jbuilder by default and rely on its scaffold generator to show json ↵ | David Heinemeier Hansson | 2013-01-10 | 1 | -9/+0 |
| | | | | API. The default scaffold will now just create HTML if the user actively opts out of jbuilder | ||||
* | Merge pull request #8705 from amparo-luna/change_update_attributes_to_update | Guillermo Iguaran | 2013-01-03 | 1 | -2/+2 |
|\ | | | | | Rename update_attributes method to update | ||||
| * | Updating default application templates to use update instead of ↵ | Amparo Luna + Guillermo Iguaran | 2013-01-03 | 1 | -2/+2 |
| | | | | | | | | update_attributes | ||||
* | | test PATCH method for update action in generated scaffold controller test ↵ | Akira Matsuda | 2013-01-03 | 1 | -2/+2 |
|/ | | | | rather than PUT | ||||
* | Add --no-html to scaffold generator | Yehuda Katz | 2012-12-22 | 1 | -0/+5 |
| | |||||
* | Put the reference and belongs_to attributes in the scaffold tests. | Rafael Mendonça França | 2012-12-10 | 1 | -3/+3 |
| | |||||
* | fix scaffold controller generator tests | Francesco Rodriguez | 2012-12-07 | 1 | -16/+12 |
| | |||||
* | Remove some line breaks between array items that make the assert file tests ↵ | Carlos Antonio da Silva | 2012-11-04 | 1 | -14/+6 |
| | | | | harder to read | ||||
* | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 1 | -1/+1 |
| | |||||
* | Update test locations | Mike Moore | 2012-10-09 | 1 | -13/+13 |
| | | | | | | | | | | | | | | 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) | ||||
* | Fix broken scaffold routes test | Jeremy Walker | 2012-10-01 | 1 | -1/+1 |
| | |||||
* | Change scaffold_controller to generate and use private method to encapsulate ↵ | Guillermo Iguaran | 2012-09-16 | 1 | -4/+4 |
| | | | | permissible params | ||||
* | fix scaffold_generator_test.rb and model_generator_test.rb | Arun Agrawal | 2012-04-16 | 1 | -4/+2 |
| | | | | Broken after this 6a054b0038bac288a1f6e45feb5470f4ee492081 | ||||
* | Refactor the test_unit scaffold generator to use the key_value method | Rafael Mendonça França | 2012-03-13 | 1 | -4/+4 |
| | |||||
* | Use the attributes hash explicitly | Rafael Mendonça França | 2012-03-13 | 1 | -3/+13 |
| | |||||
* | Do not use the attributes hash in the scaffold functional tests | Rafael Mendonça França | 2012-03-12 | 1 | -2/+6 |
| | |||||
* | Revert the serializers API as other alternatives are now also under discussion | José Valim | 2011-11-25 | 1 | -9/+0 |
| | |||||
* | Add a hook for serializers in the scaffold generator (off for now). | José Valim | 2011-11-25 | 1 | -0/+9 |
| | |||||
* | Move Coffee generators and templates to Coffee Railtie and create ↵ | Santiago Pastorino | 2011-06-29 | 1 | -14/+7 |
| | | | | javascript_engine ("js") for apps that remove Coffee gem | ||||
* | Attributes on scaffold and model generators default to string. | José Valim | 2011-06-17 | 1 | -3/+9 |
| | | | | This allows the following: "rails g scaffold Post title body:text author" |