aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/benchmark_helper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* add benchmark helper that works in erbSergey Nartimov2012-01-071-0/+24
|
* Unify benchmark APIs.José Valim2009-10-151-86/+0
|
* Ported the new ActionView::TestCase from 2-3-stable to master [#3260Erik Ostrom2009-09-281-6/+6
| | | | | | | | | | | | | | | | | 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: Joshua Peek <josh@joshpeek.com>
* Added :silence option to BenchmarkHelper#benchmark and turned log_level into ↵David Heinemeier Hansson2009-01-011-24/+50
| | | | a hash parameter and deprecated the old use [DHH]
* Fixed tests (and the weird assumption that no logger would mean that the ↵David Heinemeier Hansson2008-04-301-19/+7
| | | | code wasnt run)
* Introduce ActionView::TestCase for testing view helpers.Joshua Peek2008-04-191-2/+2
|
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵Jeremy Kemper2007-01-281-2/+2
| | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* benchmark helper takes an optional log level, defaults to :info. Chose ↵Jeremy Kemper2005-07-051-0/+72
symbols log levels rather than Logger::FOO constants for simplicity. Added benchmark helper test suite. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de