aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* Raise a better error if anyone wants to create your own ↵Rafael Mendonça França2012-01-231-0/+8
| | | | ActionView::Helpers::Tags::Base child and do not implement the render method
* Raise exception when date.order includes invalid elementsIndrek Juhkam2012-01-221-0/+8
|
* Merge pull request #4574 from ihid/masterJosé Valim2012-01-211-0/+16
|\ | | | | Fixed regression - unable to use a range as choices for form.select.
| * Fix inconsistent ability to use a range as choices for select_tag.Jeremy Walker2012-01-211-0/+16
| |
* | Remove not used requires from csrf helper file and testCarlos Antonio da Silva2012-01-211-7/+0
|/ | | | | These requires were added in a87b92d and the implementation changed in 2cdc1f0, removing the need for them.
* Removed unused assigns from ActionView::Template::Errorbrainopia2012-01-204-6/+6
| | | | | They existed since initial rails commit by DHH but lost use a long time ago
* Added format to percentageRodrigo Flores2012-01-201-0/+1
|
* Use performed? instead of checking for response_bodyCarlos Antonio da Silva2012-01-191-3/+0
| | | | | | * Check for performed? instead of response_body * Change performed? to return a boolean * Refactor AC::Metal#response_body= to reuse variable
* Do not deprecate performed.José Valim2012-01-191-0/+6
|
* Refactor button_to helper to use token_tag methodRafael Mendonça França2012-01-192-5/+24
|
* ActionView now has its own loggerRafael Mendonça França2012-01-182-4/+3
|
* Fix warning: assigned but unused variable - resultkennyj2012-01-191-1/+1
|
* Refactor FormBuilder arguments and default configCarlos Antonio da Silva2012-01-181-3/+3
| | | | | | | | | | * Do not reopen AV::Base to define default form builder Inside the load hook we are already in AV::Base context. * Do not pass the given block to the form builder The block is evaluated in fields_for context using capture, with the builder as argument. This means we do not need to give the block to the FormBuilder itself.
* Fix errors when running entire suite due to class name collisionCarlos Antonio da Silva2012-01-181-23/+23
| | | | | | | | | The Post class is created everywhere in the test suite, and due to that when applying the Array() logic to refactor content_tag_for, some other change to the Post class was breaking record tag tests. The solution is to rename the class to not collide with others already defined in the test suite.
* Cleanup Post model, no need to require fake_modelsCarlos Antonio da Silva2012-01-181-17/+6
|
* Do not mutate options hashCarlos Antonio da Silva2012-01-181-0/+6
|
* Cleanup persisted setup for modelCarlos Antonio da Silva2012-01-181-7/+7
|
* Mimic AR models yielding when building new records, avoid using tapCarlos Antonio da Silva2012-01-181-6/+8
|
* No need for concat as wellCarlos Antonio da Silva2012-01-181-4/+4
|
* Add test for content tag with prefix and extra html optionsCarlos Antonio da Silva2012-01-181-4/+10
|
* Merge pull request #4488 from rafaelfranca/av-refactorXavier Noria2012-01-171-0/+4
|\ | | | | ActionView::Helpers::FormHelper refactoring
| * Adding one test case for label with blockRafael Mendonça França2012-01-171-0/+4
| |
* | Bring back rendering templates that start with / in nested structuresCarlos Antonio da Silva2012-01-171-0/+22
| |
* | Remove deprecated default_charset= from AC::BaseCarlos Antonio da Silva2012-01-171-4/+4
| | | | | | | | | | This should be set globally as a configuration, using `config.action_dispatch.default_charset` instead
* | Move render_to_body logic to return a spaced string to AC::RenderingCarlos Antonio da Silva2012-01-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | This seems to be required only when calling render :partial with an empty collection from a controller. This call happens to return no content, letting the response body empty, which means to Rails that it should go on and try to find a template to render based on the current action name, thus failing hard. Although tests keep all green, we need to check a better way to fix this.
* | Remove method missing handling when action is not found, use action missing ↵Carlos Antonio da Silva2012-01-171-45/+0
| | | | | | | | | | | | | | instead Do not create a method_missing method to handle not found actions, use the action_missing method provided by Rails instead.
* | Rename test class and fix tests to keep consistencyCarlos Antonio da Silva2012-01-171-10/+10
| | | | | | | | Based on 50d23bc2bd3653b3c66e480c22ae97c5f7fd7f62.
* | Remove deprecated logic to render templates starting with /Carlos Antonio da Silva2012-01-171-22/+0
| | | | | | | | render :template => "/foo/bar"
* | Remove rescue_action from compatibility module and testsCarlos Antonio da Silva2012-01-1722-83/+7
| |
* | Remove other old compatibility constantsCarlos Antonio da Silva2012-01-174-11/+11
| |
* | Remove old compatibility methods not being usedCarlos Antonio da Silva2012-01-172-9/+0
|/
* Stub ip method of alternative request classSam Pohlenz2012-01-141-0/+4
|
* Use a BodyProxy instead of including a Module that responds to close.Santiago Pastorino2012-01-131-1/+12
| | | | Closes #4441 if Active Record is disabled assets are delivered correctly
* removed unnecessary test_pass test from form_tag_helper_test.rbKarunakar (Ruby)2012-01-131-4/+0
|
* Merge pull request #4429 from marcinbunsch/1923-force-ssl-redirect-keep-flashJosé Valim2012-01-121-1/+37
|\ | | | | When force redirecting to SSL, make sure that the session is kept
| * When force redirecting to SSL, make sure that the session is kept. As we're ↵Marcin Bunsch and Przemek Dąbek2012-01-121-1/+37
| | | | | | | | moving from a non-secure to secure environment, it's safe
* | Handle leading spaces in protocol while sanitizingManu2012-01-121-1/+8
|/
* AC:TestCase::Behavior#head only accepts parameters as second argumentRafael Mendonça França2012-01-101-0/+4
|
* Whitespaces :scissors:Rafael Mendonça França2012-01-101-4/+4
|
* Fix ActionController::TestCase::Behavior.headRafael Mendonça França2012-01-101-0/+5
|
* Merge pull request #4371 from rafaelfranca/test_unit_cleanupAaron Patterson2012-01-091-3/+5
|\ | | | | Test unit cleanup
| * Test constant is not defined anymoreRafael Mendonça França2012-01-061-3/+5
| |
* | instance_variables method returns symbols in 1.9 rubySergey Nartimov2012-01-071-1/+1
| |
* | get rid of using instance_variable_names method from ASSergey Nartimov2012-01-071-1/+1
| | | | | | | | | | - instance_variables return symbols in 1.9 - there is instance_variable_defined? method
* | Merge pull request #4369 from lest/remove-warningsPiotr Sarnacki2012-01-071-2/+2
|\ \ | | | | | | use stub instead of redefining method to suppress warnings
| * | use stub instead of redefining method to suppress warningsSergey Nartimov2012-01-071-2/+2
| | |
* | | add benchmark helper that works in erbSergey Nartimov2012-01-071-0/+24
| |/ |/|
* | require minitest rather than test/unitAaron Patterson2012-01-062-2/+2
|/
* test response assertionsAaron Patterson2012-01-061-0/+55
|
* don't set the hidden checkbox value if it's nilDamien Mathieu2012-01-061-0/+8
|