aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract_unit.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Significantly improved internal encoding heuristics and support.wycats2010-05-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * Default Encoding.default_internal to UTF-8 * Eliminated the use of file-wide magic comments to coerce code evaluated inside the file * Read templates as BINARY, use default_external or template-wide magic comments inside the Template to set the initial encoding * This means that template handlers in Ruby 1.9 will receive Strings encoded in default_internal (UTF-8 by default) * Create a better Exception for encoding issues, and use it when the template source has bytes that are not compatible with the specified encoding * Allow template handlers to opt-into handling BINARY. If they do so, they need to do some of their own manual encoding work * Added a "Configuration Gotchas" section to the intro Rails Guide instructing users to use UTF-8 for everything * Use config.encoding= in Ruby 1.8, and raise if a value that is an invalid $KCODE value is used Also: * Fixed a few tests that were assert() rather than assert_equal() and were caught by Minitest requiring a String for the message * Fixed a test where an assert_select was misformed, also caught by Minitest being more restrictive * Fixed a test where a Rack response was returning a String rather than an Enumerable
* move FixtureResolver to a file that is accessible outside Rails' own testsDavid Chelimsky2010-05-021-1/+1
| | | | | | [#4522 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Add a test for assert_recognizes on ActionDispatch::IntegrationTest [#4390 ↵Santiago Pastorino2010-04-241-1/+7
| | | | | | state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Rename config.cookie_secret to config.secret_token and pass it as ↵José Valim2010-04-051-4/+0
| | | | configuration in request.env. This is another step forward removing global configuration.
* Refactored url_for in AV to have its own instances of the helpers instead of ↵wycats2010-04-031-0/+20
| | | | proxying back to the controller. This potentially allows for more standalone usage of AV. It also kicked up a lot of dust in the tests, which were mocking out controllers to get this behavior. By moving it to the view, it made a lot of the tests more standalone (a win)
* Consistent routing languageJoshua Peek2010-03-301-8/+7
|
* Fixed a bunch of tests that failed in 1.9 because they assumed that a Rack ↵wycats2010-03-191-0/+13
| | | | response was a String.
* Modify assert_template to use instrumentationCarlhuda2010-03-171-41/+0
|
* Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-1/+0
| | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
* Deprecated ActionController::Base.session_options= and ↵Carlhuda2010-03-041-2/+1
| | | | ActionController::Base.session_store= in favor of a config.session_store method (which takes params) and a config.cookie_secret variable, which is used in various secret scenarios. The old AC::Base options will continue to work with deprecation warnings.
* Move the original config method onto AbstractControllerCarl Lerche2010-03-031-1/+1
|
* Start refactoring the method of configuring ActionViewCarlhuda2010-03-031-0/+15
|
* Fix failing Action Pack testsCarlhuda2010-03-021-0/+10
|
* add activesupport and activemodel load paths to actionpack testsJoshua Peek2010-02-281-0/+6
|