aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/test_unit/scaffold/templates
Commit message (Collapse)AuthorAgeFilesLines
* Update test generators to use ActionDispatch::IntegrationTestAbdelkader Boudih2015-12-152-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"eileencodes2015-12-132-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 Boudih2015-12-132-14/+15
| | | | ControllerTest
* make generated scaffold functional tests work inside API enginesyuuji.yaginuma2015-08-091-1/+4
| | | | | * set engine's route in setup * use fixture with engine namespace
* fix NoMethodError that occurs when generating scaffold inside full mode engineyuuji.yaginuma2015-06-281-1/+1
|
* assigns was removed from RailsRafael Mendonça França2015-06-111-1/+0
|
* Make Rails API apps return the full resource on updateSantiago Pastorino2015-06-111-1/+1
|
* API apps scaffold generator generates an apropriate controllerSantiago Pastorino2015-06-111-0/+41
|
* add engine's namespace to fixture nameyuuji.yaginuma2015-05-311-1/+1
|
* set engine's route in the functional test is generated in the engineyuuji.yaginuma2015-05-311-0/+3
|
* Removed `assigns` from functional_test templatesPrathamesh Sonpatki2015-05-021-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 Senn2015-01-301-5/+5
| | | | This prevents a flood of warnings when generating a new scaffold.
* test PATCH method for update action in generated scaffold controller test ↵Akira Matsuda2013-01-031-1/+1
| | | | rather than PUT
* Remove --http.José Valim2012-03-141-50/+0
|
* Generate special controller and functional test templates for http appsCarlos Antonio da Silva2012-03-141-0/+50
| | | | | | | | | | | | 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-131-5/+5
| | | | the 1.9 hash syntax in the generators.
* Use the attributes hash explicitlyRafael Mendonça França2012-03-131-3/+2
|
* Do not use the attributes hash in the scaffold functional testsRafael Mendonça França2012-03-121-2/+3
|
* Remove needless to_param in scaffold functional testAlexey Vakhov2011-10-241-4/+4
|
* 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.
* Fix scaffold generator to be aware of namespace in isolated enginePiotr Sarnacki2010-11-031-0/+2
|
* Remove the --singeleton option from scaffold generator.Prem Sichanugrist2010-06-241-2/+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-231-12/+12
| | | | 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>
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-231-0/+51
| | | | former since it's less obstrusive.
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-181-47/+0
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* MergeDavid Heinemeier Hansson2010-01-031-2/+2
|
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+47