aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
Commit message (Collapse)AuthorAgeFilesLines
* Fix t('.helper').José Valim2010-01-261-5/+5
|
* Default to sync instrumentation.José Valim2010-01-211-11/+2
|
* Add some implicit path tests to Subscriber.José Valim2010-01-151-1/+18
|
* In heterogeneous collections, neither the @path nor the @template are ↵José Valim2010-01-151-0/+10
| | | | available, so we need to tell that we are simply rendering a collection.
* Allow f.submit to be localized per object.José Valim2010-01-151-1/+19
|
* Custom 'type' attribute support for text_field. [#3646 status:resolved]Stephen Celis2010-01-141-0/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make check boxes accept :multiple as option so they can handle collections ↵José Valim2010-01-141-0/+13
| | | | (such as HABTM).
* Call :to_model before working with the object.José Valim2010-01-141-2/+2
|
* Add possibility to use i18n translatios in submit FormHelper.Carlos Antonio da Silva2010-01-141-3/+60
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Test fragment/page cache and send data/file notifications.José Valim2010-01-131-1/+2
|
* Add subscriber for ActionPack and move all logging inside it.José Valim2010-01-131-0/+74
|
* Javascript tests expects the old default of escaping HTML, make it so for nowDavid Heinemeier Hansson2010-01-102-0/+10
|
* Fixed that much of DateHelper wouldn't return html_safe? strings [DHH]David Heinemeier Hansson2010-01-081-0/+22
|
* Use helpers.label instead of views.labels.José Valim2010-01-072-5/+5
|
* errors in ActionView should not be namespaced as well.José Valim2010-01-071-6/+6
|
* adding fix for auto linking to master tooZach Brock2010-01-051-0/+14
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* I18n label helper [#745 status:resolved]Carsten Gehling2010-01-021-0/+40
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix testsDavid Heinemeier Hansson2009-12-251-2/+2
|
* Use new routing dsl in testsJoshua Peek2009-12-083-12/+12
|
* Reorganize autoloads:Carlhuda2009-12-021-4/+4
| | | | | | | | | | | | | | | | | | | | | * 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.
* Fix parens warning in ajax testJoshua Peek2009-12-011-6/+6
|
* Privatize Routing.possible_controllers and fix brittle url helperJoshua Peek2009-11-231-26/+19
| | | | controller test loading.
* Allow explicit placement of hidden id element for nested models.Will Read2009-11-151-11/+55
| | | | | | [#3259 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Share ActionView::TestCase's output_buffer with view for concat support.Chris Hapgood2009-11-071-0/+5
| | | | | | [#3467 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Make some assertions in the ActionView::TestCase tests actually do something.Chris Hapgood2009-11-071-4/+4
| | | | | | [#3468 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Ruby 1.9: fix number precision testJeremy Kemper2009-11-041-1/+1
|
* Start rewriting some internal tests to use the new routing dslJoshua Peek2009-10-201-2/+1
|
* Fix brittle query string comparisonsJoshua Peek2009-10-191-6/+13
|
* Bring agnosticism to error_messages_for.José Valim2009-10-173-52/+43
|
* Unify benchmark APIs.José Valim2009-10-151-86/+0
|
* Make sure non-escaped urls aren't considered safeMichael Koziarski2009-10-151-0/+5
|
* ActionView.url_for doesn't escape by defaultPhil Darnowsky2009-10-151-3/+13
| | | | | | | | | | | | | | | | | ActionView::Helpers::UrlHelper#url_for used to escape the URLs it generated by default. This was most commonly seen when generating a path with multiple query parameters, e.g. url_for(:controller => :foo, :action => :bar, :this => 123, :that => 456) would return http://example.com/foo/bar?that=456&amp;this=123 escaping an ampersand that shouldn't be escaped. This is both wrong and inconsistent with the behavior of ActionController#url_for, and is changed. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Start adding configuration to ActionView instead of using constants.Yehuda Katz2009-10-143-0/+16
| | | | | | | By using config rather than hardcoded constants, we can evolve the configuration system over time (we'd just need to update the config method with more robust capabilities and all consumers would get the capabilities with no code changes)
* Fix failing safe buffer test. We don't patch CGI.escapeHTML, only ERB:Util.Joshua Peek2009-10-101-1/+1
|
* Move safe buffer into test/templateJoshua Peek2009-10-101-0/+41
|
* API change: content_tag_for outputs prefixed class nameJoshua Peek2009-10-081-1/+1
|
* Switch to on-by-default XSS escaping for rails.Michael Koziarski2009-10-089-5/+60
| | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration.
* Use with_routing helper in tests instead of modifying global route setJoshua Peek2009-10-031-14/+23
|
* Moved shared form helper models into fake_modelsJoshua Peek2009-10-032-99/+2
|
* File extra test folders into controller, dispatch, or templateJoshua Peek2009-10-039-0/+1230
|
* Ported the new ActionView::TestCase from 2-3-stable to master [#3260Erik Ostrom2009-09-282-7/+7
| | | | | | | | | | | | | | | | | 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>
* Introduce :almost keyword for distance_of_time_in_words. Make 1.75 days - 2 ↵John Trupiano2009-09-282-21/+37
| | | | | | | days return '2 days'. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#3266 state:committed]
* Enhancing distance_of_time_in_words to prefix year output with over and ↵Jay Pignata2009-09-281-7/+8
| | | | | | | about depending upon how many months have elapsed Signed-off-by: Michael Koziarski <michael@koziarski.com> [#3106 state:committed]
* Restore split between require-time and runtime load path mungery. Simplifies ↵Jeremy Kemper2009-09-241-1/+1
| | | | vendor requires.
* Move helpers specific to functional tests out of TestProcess into AC::TestCaseJoshua Peek2009-09-231-11/+3
|
* Ensure changes to I18n locale get reset during testsJoshua Peek2009-09-191-9/+5
|
* Rollback AS bundler work and improve activation of vendored dependenciesJoshua Peek2009-09-131-1/+1
|
* Define weblog controller for url helper testJoshua Peek2009-09-131-0/+1
|
* Allow fields_for on a nested_attributes association to accept an explicit ↵Andrew France2009-09-121-0/+36
| | | | | | collection to be used. [#2648 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Cleanup hacky routing with controller_path in url helper tests. This doesn't ↵Joshua Peek2009-09-061-62/+56
| | | | work in real life anyway.