aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/test_unit
Commit message (Collapse)AuthorAgeFilesLines
* Add support for generate scaffold password:digestSam Ruby2013-03-132-10/+12
| | | | | | | | | | * 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
* extract PerformanceTest into rails-performance_tests gemYves Senn2013-01-102-25/+0
|
* test PATCH method for update action in generated scaffold controller test ↵Akira Matsuda2013-01-031-1/+1
| | | | rather than PUT
* Add active_support/testing/autorunRafael Mendonça França2012-12-311-1/+1
| | | | | minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails
* quote column names in generated fixture filesYves Senn2012-12-262-4/+16
|
* Make sure that no extra spaces are created with a non-polymorphicRafael Mendonça França2012-12-101-2/+6
| | | | attributes
* Add GeneratedAttribute#column_name to get the name of the column in theRafael Mendonça França2012-12-101-2/+2
| | | | database
* Extract a attributes_names method to avoid duplicationRafael Mendonça França2012-12-101-12/+4
|
* Deal with polymorphic attributes correctly in the generatorsRafael Mendonça França2012-12-102-5/+13
|
* Make references and belongs_to attributes to generate the _id column inRafael Mendonça França2012-12-101-2/+2
| | | | fixtures
* Put the reference and belongs_to attributes in the scaffold tests.Rafael Mendonça França2012-12-101-6/+3
|
* Remove observers and sweepersRafael Mendonça França2012-11-282-22/+0
| | | | | | | | They was extracted from a plugin. See https://github.com/rails/rails-observers [Rafael Mendonça França + Steve Klabnik]
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-1410-16/+16
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-10-119-27/+27
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb
| * nodoc TestUnit::Generators [ci skip]Francesco Rodriguez2012-10-079-27/+27
| |
* | Update test locationsMike Moore2012-10-096-6/+6
|/ | | | | | | | | | | | | | 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)
* update performance test template to use test methodFrancesco Rodriguez2012-07-061-1/+1
|
* require "rubygems" is obsolete in Ruby 1.9.3Kornelius Kalnbach2012-05-131-1/+0
|
* Remove unused generator options. This was added for the removed rails new --httpSantiago Pastorino2012-04-181-3/+0
|
* Adding comma to correct syntax in comment.Jesse Brown2012-03-191-1/+1
|
* Remove --http.José Valim2012-03-142-54/+2
|
* Generate special controller and functional test templates for http appsCarlos Antonio da Silva2012-03-142-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 useRafael Mendonça França2012-03-132-10/+6
| | | | the 1.9 hash syntax in the generators.
* Refactor the test_unit scaffold generator to use the key_value methodRafael Mendonça França2012-03-131-1/+1
|
* Use the attributes hash explicitlyRafael Mendonça França2012-03-132-6/+18
|
* Do not use the attributes hash in the scaffold functional testsRafael Mendonça França2012-03-122-2/+11
|
* require minitest rather than test/unitAaron Patterson2012-01-061-1/+1
|
* Revert the serializers API as other alternatives are now also under discussionJosé Valim2011-11-252-22/+0
|
* Add generators for serializers.José Valim2011-11-252-0/+22
|
* Remove needless to_param in scaffold functional testAlexey Vakhov2011-10-241-4/+4
|
* restores the API docs of AR::Fixtures, made a quick pass over them, revises ↵Xavier Noria2011-09-031-1/+1
| | | | link in fixture template [closes #2840]
* fixtures :all is already included in test_helper.rbSantiago Pastorino2011-06-231-2/+0
|
* Remove trailing white-spacesGuillermo Iguaran2011-06-051-1/+1
|
* for ... in => .eachAkira Matsuda2011-05-183-5/+5
| | | | I believe this is more modern way
* added a note about profiling options to the generatorsGonçalo Silva2011-05-091-1/+4
|
* Stop adding actual dummy tests (they clutter up the real ones in a new app), ↵David Heinemeier Hansson2011-04-236-24/+18
| | | | just show how its done
* Rails will now generate Ruby 1.9 style hash when running scaffold_controller ↵Prem Sichanugrist2011-04-101-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.
* revises links to the API websites of individual components (no longer ↵Xavier Noria2011-03-091-1/+1
| | | | maintained), and rewrites the section about after and around filters in the controller guide
* Fix scaffold generator to be aware of namespace in isolated enginePiotr Sarnacki2010-11-031-0/+2
|
* Add namespacing to mailer generatorPiotr Sarnacki2010-09-251-0/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add namespacing for observer generatorPiotr Sarnacki2010-09-251-0/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add namespace for test_unit generatorsPiotr Sarnacki2010-09-253-0/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove the --singeleton option from scaffold generator.Prem Sichanugrist2010-06-242-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.E2010-06-232-13/+13
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵Andrew White2010-06-201-1/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* performance and integration tests inherit from AD, not ACGonçalo Silva2010-05-282-2/+2
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Just assert for 'Hi' in generated mailer tests.José Valim2010-03-261-1/+1
|
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-2320-0/+298
| | | | former since it's less obstrusive.
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-1821-293/+0
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* Autoload AS test caseJoshua Peek2010-01-041-2/+0
|