aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/test_unit
Commit message (Collapse)AuthorAgeFilesLines
* Add mailer suffix to generated files and classesCarlos Souza2015-01-063-6/+6
| | | | | Following the same naming convention used in controllers and jobs.
* Generated fixtures won't use parent_id when generated with parent:referencesPablo Olmos de Aguilera Corradini2015-01-021-0/+2
| | | | Fix #18301
* correct filename for jobs testsAbdelkader Boudih2014-09-281-1/+1
|
* Change ActiveJob test directory to "test/jobs"yuuji.yaginuma2014-09-131-1/+1
|
* Remove extra newline from ActiveJob test templateyuuji.yaginuma2014-09-091-1/+0
|
* [ActiveJob] TestCaseAbdelkader Boudih2014-09-021-1/+0
|
* [ActiveJob] TestCaseAbdelkader Boudih2014-09-021-1/+3
|
* [ActiveJob] Add hook for test_framework and test templatesAbdelkader Boudih2014-08-222-0/+22
|
* Bring back the helpers testsJosé Valim2014-08-051-0/+9
| | | | | Also keep the hook as other tools may rely on it, we just don't do anything by default on Rails.
* Generating stubs for helper tests is overly specific. Most helpers should ↵David Heinemeier Hansson2014-08-032-19/+0
| | | | simply be tested as part of the view thats using them. If you need something beyond that, you can add a test yourself for them
* Add comments with urls for email previewsAndrew White2013-12-221-0/+2
|
* Add mailer previews feature based on mail_view gemAndrew White2013-12-172-1/+19
|
* Revert "Rename not Ruby files to .tt"Santiago Pastorino2013-12-106-0/+0
| | | | | | This reverts commit bd360ad3c1d59273bf96ea01b17cf04285816dc2. Reverting this for now until we fix the Thor related issue
* Rename not Ruby files to .ttSantiago Pastorino2013-12-106-0/+0
|
* Added generated unit test for generator generator and new test:generators ↵Josef Šimánek2013-07-162-0/+42
| | | | rake task included in test:all rake task.
* Update a broken link into the fixtures' templateRobin Dupret2013-06-291-1/+1
|
* 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