aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/date_helper_i18n_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add i18n scope to disance_of_time_in_words.Steve Klabnik2012-10-191-10/+19
| | | | This fixes #733.
* Replace boolean argument with an options hash.Dmitriy Kiriyenko2012-04-301-18/+23
| | | | | | | | This replaces `include_seconds` argument with an option key `include_seconds => true` in options hash. Also `time_ago_in_words` now passes options hash, including a `locale` key, which makes in compatible with `distance_of_time_in_words`.
* tiny refactoringVasiliy Ermolovich2012-01-291-3/+3
| | | | | use :default option with translate method instead of condition simplify separator method
* Raise exception when date.order includes invalid elementsIndrek Juhkam2012-01-221-0/+8
|
* AP tests should inherit from AS::TestCaseAaron Patterson2012-01-051-2/+2
|
* These tests shouldn't depend on local time to pass or fail, we can use utc here.Emilio Tagua2010-09-241-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* Introduce :almost keyword for distance_of_time_in_words. Make 1.75 days - 2 ↵John Trupiano2009-09-281-9/+10
| | | | | | | days return '2 days'. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#3266 state:committed]
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-90/+86
|
* Use I18n for date/time select helpers prompt text [#561 state:resolved]Sam Oliver2008-12-221-0/+11
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* use :en as a default locale (in favor of :en-US)Sven Fuchs2008-11-181-11/+11
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* update i18n usage for pluralization hashes (api change)Sven Fuchs2008-08-101-0/+22
|
* Refactor DateHelper to use DateTimeSelector presenter patternClemens Kofler2008-08-071-11/+11
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* align with changes in i18nSven Fuchs2008-07-061-4/+4
|
* Make sure mocha is availableLuca Guidi2008-06-271-65/+69
|
* update tests according to removal of self.locale from helpersSven Fuchs2008-06-231-12/+0
|
* check self.locale instead of request.locale in helpersSven Fuchs2008-06-221-4/+4
|
* integrating I18n into RailsSven Fuchs2008-06-191-0/+99