- 27 2月, 2010 1 次提交
-
-
由 Carlhuda 提交于
This attr_accessor can be set in a before filter or in the action itself. Overwriting default_url_options still works but will output a deprecation notice.
-
- 26 2月, 2010 2 次提交
- 22 2月, 2010 1 次提交
-
-
由 Martin Schürrer 提交于
-
- 16 1月, 2010 1 次提交
-
-
由 Joshua Peek 提交于
-
- 05 1月, 2010 3 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
- 13 12月, 2009 2 次提交
-
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
- 03 12月, 2009 1 次提交
-
-
由 Carlhuda 提交于
* A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
-
- 20 10月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-
- 29 9月, 2009 1 次提交
-
-
由 Erik Ostrom 提交于
state:resolved] The test case now mimicks the template environment more closely, so it's possible to use render, load helper dependencies. This also fixes assert_select, and similar assertions. Because view tests and helpers generally don't render full templates assert_select looks first in rendered and then in output_buffer to find the rendered output. Additional `master'-only changes: Made the Action Pack Rakefile run the ActionView::TestCase tests, and made ActionView::Rendering#_render_text always return a string. Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
- 24 9月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-
- 12 8月, 2009 1 次提交
-
-
由 Yehuda Katz 提交于
* Move #set_cookie and #delete_cookie inline to optimize. These optimizations should almost certainly be sent back upstream to Rack. The optimization involves using an ivar for cookies instead of indexing into the headers each time. * Was able to use a bare Hash for headers now that cookies have their own joining semantics (some code assumed that the raw cookies were an Array). * Cache blankness of body on body= * Improve expand_cache_key for Arrays of a single element (common in our case) * Use a simple layout condition check unless conditions are used * Cache visible actions * Lazily load the UrlRewriter * Make etag an ivar that is set on prepare!
-
- 25 7月, 2009 1 次提交
-
-
由 Pratik Naik 提交于
-
- 01 5月, 2009 2 次提交
-
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
- 09 4月, 2009 1 次提交
-
-
- 28 1月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-
- 09 1月, 2009 2 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
Include process methods in ActionController::TestCase only. No need to alias_method_chain :process either.
-
- 08 1月, 2009 2 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
Include process methods in ActionController::TestCase only. No need to alias_method_chain :process either.
-
- 21 12月, 2008 1 次提交
-
-
由 Joshua Peek 提交于
-
- 24 11月, 2008 1 次提交
-
-
由 Joshua Peek 提交于
-
- 08 11月, 2008 2 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
- 14 10月, 2008 1 次提交
-
-
由 Eloy Duran 提交于
Make sure named routes with parameters can be used in tests before a request has been done. [#1208 state:resolved] Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 05 10月, 2008 1 次提交
-
-
由 Pratik Naik 提交于
Note : If you're not using rescue_from, you should overrider rescue_action_without_handler() method and not rescue_action(). Afterwards, you can set request.remote_addr to a non "0.0.0.0" value for testing the overridden behavior.
-
- 28 7月, 2008 1 次提交
-
-
由 Pratik Naik 提交于
-
- 16 7月, 2008 1 次提交
-
-
由 Pratik Naik 提交于
-
- 28 4月, 2008 1 次提交
-
-
由 David Heinemeier Hansson 提交于
Added ActionController::TestCase#rescue_action_in_public! to control whether the action under test should use the regular rescue_action path instead of simply raising the exception inline (great for error testing) [DHH]
-
- 08 3月, 2008 1 次提交
-
-
由 Pratik Naik 提交于
Allow using named routes in ActionController::TestCase before any request has been made. Closes #11273 [alloy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 30 1月, 2008 1 次提交
-
-
由 Michael Koziarski 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 05 1月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
* TestCase: introduce declared setup and teardown callbacks. Pass a list of methods and an optional block to call before setup or after teardown. Setup callbacks are run in the order declared; teardown callbacks are run in reverse. [Jeremy Kemper] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 28 12月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 05 12月, 2007 1 次提交
-
-
由 Marcel Molina 提交于
When a NonInferrableControllerError is raised, make the proposed fix clearer in the error message. Closes #10199 [danger] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8283 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 26 10月, 2007 1 次提交
-
-
由 Michael Koziarski 提交于
Introduce TestCase subclasses for testing rails applications allowing tests to be DRY'd up a bit and to provide a path toward tidying up our monkeypatching of test/unit. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-