aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* Allow parameter filters to match multi-parameter attributesRafael Mendonça França2012-10-051-0/+33
| | | | | | | This will make easier to permit date/time attributes generated by helpers like date_select. [Sven Schwyn + Rafael Mendonça França]
* ActionController::Parameters#permit! is recursiveBrendan Loudermilk2012-10-041-0/+7
|
* rename page_cache_extension option to default_static_extensionFrancesco Rodriguez2012-10-031-0/+15
|
* extract AP Page and Action caching to actionpack-deprecated_caching gemFrancesco Rodriguez2012-10-032-739/+16
|
* Failsafe exception returns text/plain.Steve Klabnik2012-10-011-0/+16
| | | | | | | It's best to just return text/plain when something has gone terribly wrong. Fixes #5660.
* resource and resources do no longer modify passed optionsYves Senn2012-10-011-0/+20
| | | | this is a patch for #7777.
* fix cache store testSteve Klabnik2012-09-301-0/+1
| | | | Pull #7800 broke the build, this should fix it.
* `assert_template` no more passing with what ever string that matches.Hugo Roque2012-09-292-0/+23
| | | | | | | | | | | | | | | | | | | | | | | Given Im rendering an template `/layout/hello.html.erb`, assert_template was passing with any string that matches. This behavior allowed false passing like: assert_template "layout" assert_template "out/hello" Now the passing possibilities are: assert_template "layout/hello" assert_template "hello" fixing assert_template bug when template matches expected, but not ends with Cherry Pick Merge: Fixes issue #3849 assert_template false positive taking redundant test off prevening incorrect assert_template when rendering with repeated names in path updating CHANGELOG with bugfix: assert_template false passing
* move metal/caching_test into controller/caching_testFrancesco Rodriguez2012-09-272-37/+42
|
* remove method redefinition warningsRafael Mendonça França2012-09-272-2/+2
| | | | | actionpack/test/template/spec_type_test.rb:32: warning: method redefined; discarding old test_spec_type_wont_match_non_space_characters actionpack/test/controller/spec_type_test.rb:30: warning: previous definition of test_spec_type_wont_match_non_space_characters was here
* Merge pull request #7444 from szimek/params_parser_raises_parsing_errorAaron Patterson2012-09-262-2/+6
|\ | | | | Raise generic ParseError exception when ParamsParser fails parsing request params
| * Make ActionDispatch::ParamsParser::ParseError#original_exception return the ↵Szymon Nowak2012-08-272-2/+4
| | | | | | | | original exception.
| * Fix ActionDispatch::ParamsParser::ParseError message for XML and JSON parsers.Szymon Nowak2012-08-242-2/+4
| |
| * Raise generic ParseError exception when ActionDispatch::ParamsParser fails ↵Szymon Nowak2012-08-242-2/+2
| | | | | | | | parsing request params.
* | fixing most tests on Ruby 2.0Aaron Patterson2012-09-251-2/+2
| |
* | allow to pass numerical value to size option in image_tagNihad Abbasov2012-09-251-1/+1
| | | | | | | | | | This will set image's both width and height attributes to value passed in size option.
* | Merge pull request #7749 from blowmage/minitestAaron Patterson2012-09-256-1/+382
|\ \ | | | | | | Improve support for minitest's spec DSL
| * | Register AD::IntegrationTest for minitest's spec DSLMike Moore2012-09-241-0/+41
| | |
| * | Support helper tests using spec DSLMike Moore2012-09-242-1/+57
| | | | | | | | | | | | | | | Improve how helper tests to resolve the helper class from the test name. Add tests for helper tests using the minitest spec DSL.
| * | Register helper and view tests for minitest's spec DSLMike Moore2012-09-241-0/+39
| | |
| * | Allow strings in the controller test describe blocksMike Moore2012-09-242-0/+129
| | | | | | | | | | | | | | | Allow controller tests using the spec DSL to match strings. Add test coverage for the register_spec_type calls.
| * | Support controller tests using spec DSL - fixes #7743Mike Moore2012-09-241-0/+116
| | | | | | | | | | | | Add tests for controller tests using the minitest spec DSL.
* | | depreacte unused Mime::Type#verify_request? and ↵grosser2012-09-242-7/+13
|/ / | | | | | | Mime::Type.browser_generated_types
* | fixes the suite for uploaded filesXavier Noria2012-09-231-6/+6
| |
* | Accept parameters in methods delegated to tempfileSergio Gil Pérez de la Manga2012-09-221-0/+6
| |
* | Delegate ActionDispatch::Http::UploadedFile#close to tempfileSergio Gil Pérez de la Manga2012-09-201-0/+6
| |
* | Removing to_shorthand from default_controller_and_action. Fixes #6497Luiz Felipe2012-09-191-0/+7
| | | | | | | | | | When using shortcut routes inside an engine the "to_shorthand" variable is set to true, causing the module scope of the route to not be applied.
* | Correct parameter access.Philip Arndt2012-09-191-1/+1
| | | | | | * The params as supplied pass born in authors[0] but not authors[1] so it seems like the test isn't covering what it should be covering.
* | Merge pull request #7251 from rails/integrate-strong_parametersDavid Heinemeier Hansson2012-09-187-41/+251
|\ \ | | | | | | Integrate strong_parameters in Rails 4
| * | Support fields_for attributes, which may have numeric symbols as hash keysGuillermo Iguaran2012-09-161-0/+18
| | |
| * | Add config.action_controller.permit_all_attributes to bypass ↵Guillermo Iguaran2012-09-161-0/+14
| | | | | | | | | | | | StrongParameters protection
| * | Change tainted/untainted wording to permitted/forbiddenGuillermo Iguaran2012-09-163-26/+26
| | |
| * | Don't use assert_nothing_raised when assert_equal is usedGuillermo Iguaran2012-09-161-4/+2
| | |
| * | require abstract_unit in parameters testsGuillermo Iguaran2012-09-163-0/+3
| | |
| * | Remove integration between attr_accessible/protected and ↵Guillermo Iguaran2012-09-162-41/+0
| | | | | | | | | | | | AC::Metal::ParamsWrapper
| * | Integrate ActionController::Parameters from StrongParameters gemGuillermo Iguaran2012-09-165-0/+218
| | |
* | | log 404 status when ActiveRecord::RecordNotFound was raised (#7646)Yves Senn2012-09-171-0/+15
| | |
* | | Merge pull request #7669 from guilleiguaran/rename-rb-handlerCarlos Antonio da Silva2012-09-172-3/+3
|\ \ \ | | | | | | | | Rename .rb template handler to .ruby to avoid conflicts with mustache classes
| * | | Rename .rb template handler to .ruby to avoid conflicts with mustache views ↵Guillermo Iguaran2012-09-172-3/+3
| |/ / | | | | | | | | | classes
* / / allowing pass couple extension to register_template_handler callTima Maslyuchenko2012-09-171-0/+9
|/ /
* | Support for multiple etags in an If-None-Match headerTravis Warlick2012-09-151-0/+39
| | | | | | | | | | | | | | | | This is a rebased version of #2520. Conflicts: actionpack/test/dispatch/request_test.rb
* | Merge pull request #7616 from lest/null-session-forgery-protectionMichael Koziarski2012-09-131-10/+6
|\ \ | | | | | | Implement :null_session CSRF protection method
| * | Implement :null_session CSRF protection methodSergey Nartimov2012-09-131-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | It's further work on CSRF after 245941101b1ea00a9b1af613c20b0ee994a43946. The :null_session CSRF protection method provide an empty session during request processing but doesn't reset it completely (as :reset_session does).
* | | Define a SynchronousQueue for test in Action Pack.Rafael Mendonça França2012-09-122-6/+10
| | | | | | | | | | | | We don't need to rely on rails/queueing in Action Pack tests
* | | Merge pull request #7612 from arunagw/build_fix_queueCarlos Antonio da Silva2012-09-121-0/+6
|\ \ \ | | | | | | | | Fix build Rails.queue
| * | | Fix build Rails.queueArun Agrawal2012-09-121-0/+6
| |/ / | | | | | | | | | see 34b23e7110a3a13cf157608cefc9b5701017bf39
* / / warning removed.Arun Agrawal2012-09-121-1/+0
|/ / | | | | | | | | 1. Unused variable 2. possibly useless use of a variable in void context
* | Merge pull request #7594 from guilleiguaran/rb-template-handlerRafael Mendonça França2012-09-102-0/+11
|\ \ | | | | | | Add .rb template handler
| * | Add .rb template handlerGuillermo Iguaran2012-09-112-0/+11
| | | | | | | | | | | | This handler simply allows arbitrary Ruby code as a template
* | | Merge pull request #7513 from kalys/masterCarlos Antonio da Silva2012-09-096-10/+10
|\ \ \ | | | | | | | | ERB::Util.html_escape encodes single quote as #39. Decimal form has better support in old browsers.