aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/scaffold_generator_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Improve the matches on the scaffold generator testsCarlos Antonio da Silva2015-01-031-9/+8
| | | | Related to #13434.
* Merge pull request #13434 from tanraya/local_variablesCarlos Antonio da Silva2015-01-031-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.tanraya2014-07-261-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 warningsCarlos Antonio da Silva2015-01-021-2/+2
| | | | | | | | | | warning: ambiguous first argument; put parentheses or a space even after `/' operator'`
* | Verify the helper name with plural as it is generatedCarlos Antonio da Silva2015-01-021-1/+1
| | | | | | | | Thanks @robin850.
* | Fix scaffold generator with --helper=false optionRafael Mendonça França2015-01-011-0/+14
| |
* | Fix test description to match the test behaviourRafael Mendonça França2015-01-011-1/+1
| |
* | Stubs are no longer generated for helpers, so dont test for itDavid Heinemeier Hansson2014-08-031-4/+0
|/
* Fix the indentation on the from template of the scaffold generatorRafael Mendonça França2013-08-191-2/+2
|
* Use GeneratedAttribute#column_name if #reference? scaffold_generator in ↵Zachary Scott2013-07-231-0/+24
| | | | _form view [Fixes #11573]
* 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
* 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
* Include jbuilder by default and rely on its scaffold generator to show json ↵David Heinemeier Hansson2013-01-101-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_updateGuillermo Iguaran2013-01-031-2/+2
|\ | | | | Rename update_attributes method to update
| * Updating default application templates to use update instead of ↵Amparo Luna + Guillermo Iguaran2013-01-031-2/+2
| | | | | | | | update_attributes
* | test PATCH method for update action in generated scaffold controller test ↵Akira Matsuda2013-01-031-2/+2
|/ | | | rather than PUT
* Add --no-html to scaffold generatorYehuda Katz2012-12-221-0/+5
|
* Put the reference and belongs_to attributes in the scaffold tests.Rafael Mendonça França2012-12-101-3/+3
|
* fix scaffold controller generator testsFrancesco Rodriguez2012-12-071-16/+12
|
* Remove some line breaks between array items that make the assert file tests ↵Carlos Antonio da Silva2012-11-041-14/+6
| | | | harder to read
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-1/+1
|
* Update test locationsMike Moore2012-10-091-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 testJeremy Walker2012-10-011-1/+1
|
* Change scaffold_controller to generate and use private method to encapsulate ↵Guillermo Iguaran2012-09-161-4/+4
| | | | permissible params
* fix scaffold_generator_test.rb and model_generator_test.rbArun Agrawal2012-04-161-4/+2
| | | | Broken after this 6a054b0038bac288a1f6e45feb5470f4ee492081
* Refactor the test_unit scaffold generator to use the key_value methodRafael Mendonça França2012-03-131-4/+4
|
* Use the attributes hash explicitlyRafael Mendonça França2012-03-131-3/+13
|
* Do not use the attributes hash in the scaffold functional testsRafael Mendonça França2012-03-121-2/+6
|
* Revert the serializers API as other alternatives are now also under discussionJosé Valim2011-11-251-9/+0
|
* Add a hook for serializers in the scaffold generator (off for now).José Valim2011-11-251-0/+9
|
* Move Coffee generators and templates to Coffee Railtie and create ↵Santiago Pastorino2011-06-291-14/+7
| | | | javascript_engine ("js") for apps that remove Coffee gem
* Attributes on scaffold and model generators default to string.José Valim2011-06-171-3/+9
| | | | This allows the following: "rails g scaffold Post title body:text author"
* Move SCSS generators and default templates from Rails to the Sass Railtie ↵tomhuda2011-05-241-16/+16
| | | | | | | | (d435726312601edb3ba6f97b34f562221f72c1f8). * Sass gem registers a compressor * Sass gem registers generators for assets and scaffold * Create a default stylesheet_engine ("css") for apps that remove the Sass gem
* Make generators more modular, add hooks and improve test suite.José Valim2011-04-171-8/+44
|
* Generate add_index by default when giving type belongs_to or referencesSantiago Pastorino2010-12-161-2/+5
|
* got rid of the "ambiguous first argument; put parentheses or even spaces" ↵Jeff Kreeftmeijer2010-09-241-32/+32
| | | | | | warnings in the scaffold_generator tests [#4872 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add two integration tests for GeneratedAttribute missing type error. [#5461 ↵rohit2010-09-021-0/+6
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Failing test to check for route file corruption if legacy map parameter is ↵rohit2010-08-021-0/+15
| | | | used. [#5263 state:open]
* Patch for Namespace problem in Scaffold. [#4763 state:resolved]Mohammed Siddick.E2010-06-231-0/+106
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Partially revert "A new application now comes with a layout and a stylesheet."Jeremy Kemper2010-04-091-0/+8
| | | | | | | | | This reverts commit ea2c5fa8046e2f953b366adc94f0610ccfea0828. Conflicts: railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb railties/test/generators/app_generator_test.rb
* A new application now comes with a layout and a stylesheet.José Valim2010-04-061-8/+0
|
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-231-1/+1
| | | | former since it's less obstrusive.
* Controller generator now creates routes as well [#4233 state:resolved]José Valim2010-03-191-9/+1
|
* Get generators tests running on Ruby 1.9.1José Valim2010-01-191-1/+2
|
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-181-1/+1
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* Move all generators tests to use new test case syntax.José Valim2010-01-031-12/+2
|
* Create Rails::Generators::TestCase.José Valim2010-01-031-7/+7
|
* Scaffolding generates new routing dsl examplesJoshua Peek2009-12-091-2/+2
|