aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract_unit.rb
Commit message (Collapse)AuthorAgeFilesLines
* Define a SynchronousQueue for test in Action Pack.Rafael Mendonça França2012-09-121-6/+0
| | | | We don't need to rely on rails/queueing in Action Pack tests
* Fix build Rails.queueArun Agrawal2012-09-121-0/+6
| | | | see 34b23e7110a3a13cf157608cefc9b5701017bf39
* Allow routing concerns to accept a callableErnie Miller2012-09-031-0/+1
| | | | | | This allows us to make alterations to the generated routes based on the scope of the current mapper, and otherwise allows us to move larger blocks of concerns out of the routes file, altogether.
* Extract common controllers to abstract_unitRafael Mendonça França2012-08-131-0/+29
|
* push drawing once to it's own moduleAaron Patterson2012-08-091-32/+20
|
* refactor the before_setup hooks to a moduleAaron Patterson2012-08-091-13/+12
|
* switch callbacks to minitest hooksAaron Patterson2012-08-091-3/+6
|
* Renamed _path_segments to _recallBogdan Gusiev2012-08-041-1/+1
|
* Remove ActionDispatch::Head middleware in favor of Rack::HeadSantiago Pastorino2012-07-231-1/+1
| | | | Closes #7110 there's more work to do on rack-cache issue 69
* Allow to use mounted helpers in ActionView::TestCasePiotr Sarnacki2012-06-011-0/+1
| | | | | Similarly to 6525002, this allows to use routes helpers for mounted helpers, but this time in ActionView::TestCase
* Remove useless load path modificationsSantiago Pastorino2012-05-111-6/+0
|
* Remove default match without specified methodJose and Yehuda2012-04-241-2/+2
| | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
* Remove --http.José Valim2012-03-141-4/+0
|
* Add ActionController::HTTPSantiago Pastorino2012-03-141-0/+4
| | | | | | More info http://edgeguides.rubyonrails.org/api_app.html [Carlos Antonio da Silva & Santiago Pastorino]
* moved the `get` testing method to a moduleAaron Patterson2012-01-231-0/+15
|
* require minitest rather than test/unitAaron Patterson2012-01-061-1/+1
|
* Change more Array.wrap to Kernel#ArrayRafael Mendonça França2012-01-051-2/+2
|
* deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-241-8/+5
|
* Extract the rendering of public exceptions pages into a Rack app.José Valim2011-12-161-9/+1
|
* Split ShowExceptions responsibilities in two middlewares.José Valim2011-12-011-9/+13
|
* fix method redefined warnings in testslest2011-11-301-0/+5
|
* fix warning in tests when using render_erb helperlest2011-11-301-0/+2
|
* test helpers in erb using erblest2011-11-301-0/+8
|
* middlewares should use logger from envlest2011-11-251-2/+2
|
* Revert "Merge pull request #2647 from dmathieu/no_rescue"Santiago Pastorino2011-08-301-5/+1
| | | | This reverts commit 125b1b0b9180ec8f0135da185e77250d2b8a4bea.
* remove useless rescueDamien Mathieu2011-08-241-1/+5
| | | | | params is a method, defined in every controller, which always returns a hash. If it raises a NoMethodError, it means there's a bug somewhere else, which we want to know about.
* Fix failing test on uninitialized `Rails.config.assets.prefix`Prem Sichanugrist2011-06-081-0/+1
| | | | This was introduced in [2684f17a17e4f97bdb89d20b4cd08585235263a2] :bomb:
* We don't need to load version any more as Sprockets.beta8 is included. Arun Agrawal2011-05-231-1/+0
|
* Make sure that we're able to run Action Pack test standalone.Prem Sichanugrist2011-05-221-0/+1
| | | | | | | | Sprocket was trying to look for these two things: * `Rails::VERSION::STRING` * `.initializer(str)` in `Rails::Engine` This commit added require to version.rb into Abstract Unit, and mocking the `Rails::Engine.initializer` in `sprockets_helper_test.rb`
* do not require ruby-debug automatically. please require it if you have ↵Aaron Patterson2010-11-191-8/+0
| | | | declared it as a dependency
* Don't write out secure cookies unless the request is secureAndrew White2010-10-251-0/+5
|
* removing more duplicate codeAaron Patterson2010-10-011-0/+17
|
* delete repeated codeAaron Patterson2010-10-011-0/+18
|
* Remove deprecated stuff in ActionControllerCarlos Antonio da Silva2010-09-261-4/+2
| | | | | | This removes all deprecated classes in ActionController related to Routing, Abstract Request/Response and Integration/IntegrationTest. All tests and docs were changed to ActionDispatch instead of ActionController.
* There is no need to open AC::Base three times to setup tests.Carlos Antonio da Silva2010-09-261-27/+20
|
* Revert "Extended default route for match in tests - now it matches ↵Łukasz Strzałkowski2010-09-051-2/+2
| | | | | | controller, action, id and format if given." This reverts commit 05e9d0df0dea68ca4655aa8723c3ee69049fac78.
* Extended default route for match in tests - now it matches controller, ↵Łukasz Strzałkowski2010-09-051-2/+2
| | | | | | action, id and format if given. This fixes url_for tests
* Removed deprecated RouteSet API, still many tests failPiotr Sarnacki2010-09-051-14/+4
|
* Silence warnings for Encoding.default_external= and Encoding.default_internal=Santiago Pastorino2010-08-221-2/+6
|
* Move encoding settings for testing purposes to abstract_unit fileSantiago Pastorino2010-08-211-1/+5
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* Fix routes with :controller segment when namespaced [#5034 state:resolved]José Valim2010-07-021-7/+10
|
* Unify routes naming by renaming router to routesPiotr Sarnacki2010-07-021-4/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Deprecate the old router DSL. Since it is still used intensively across ↵José Valim2010-06-281-0/+8
| | | | ActionPack test suite, patches that translates Rails internal tests to the new router DSL are welcome (note though that a few tests shouldn't be translated since they are testing exactly the old mapper API, like the ones in actionpack/test/controller/resource_test.rb and actionpack/test/controller/routing_test.rb)
* Move Rails module to abstract_unit to make test in isolation workSantiago Pastorino2010-06-281-0/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fixed that an ArgumentError is thrown when request.session_options[:id] is ↵Michael Lovitt2010-06-271-0/+15
| | | | | | | | read in the following scenario: when the cookie store is used, and the session contains a serialized object of an unloaded class, and no session data accesses have occurred yet. Pushed the stale_session_check responsibility out of the SessionHash and down into the session store, closer to where the deserialization actually occurs. Added some test coverage for this case and others related to deserialization of unloaded types. [#4938] Signed-off-by: José Valim <jose.valim@gmail.com>
* cache_sweeper yields blank outputNeeraj Singh2010-06-081-0/+3
| | | | | | [#3914 state:open] Signed-off-by: José Valim <jose.valim@gmail.com>
* Simplify cookie_store by simply relying on cookies.signed.José Valim2010-05-181-0/+1
|
* Revert "Moved encoding work in progress to a feature branch."wycats2010-05-171-0/+4
| | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517.
* Moved encoding work in progress to a feature branch.Jeremy Kemper2010-05-161-4/+0
| | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c.