aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Change Inflector#constantize to use eval instead of const_getNicholas Seckar2005-11-161-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix broken tests caused by incomplete loading of active support.Nicholas Seckar2005-11-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix status pluralization bug so status_codes doesn't get pluralized as ↵Jeremy Kemper2005-11-071-0/+1
| | | | | | statuses_code. Closes #2758. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Kernel#silence_stderr to silence stderr for the duration of the given ↵Sam Stephenson2005-11-071-0/+10
| | | | | | block. Changed Kernel#` to print a message to stderr (like Unix) instead of raising Errno::ENOENT on Win32. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed 0.blank? to false rather than true since it violates everyone's ↵Jeremy Kemper2005-11-021-0/+13
| | | | | | expectation of blankness. Closes #2518, Closes #2705. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added petabytes and exebytes to numeric extensions (closes #2397) ↵David Heinemeier Hansson2005-10-261-1/+3
| | | | | | [timct@mac.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Time#end_of_month to accompany Time#beginning_of_month (closes #2514) ↵David Heinemeier Hansson2005-10-261-0/+7
| | | | | | [Jens-Christian Fischer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3689@sedna: jeremy | 2005-10-16 10:24:36 -0700Jeremy Kemper2005-10-231-1/+8
| | | | | | | | | | | | | | | Ticket 2404 - delete fixtures after using them r3744@sedna: jeremy | 2005-10-23 12:28:28 -0700 track dirty and loaded fixtures more carefully r3745@sedna: jeremy | 2005-10-23 12:29:39 -0700 fix broken tests r3756@sedna: jeremy | 2005-10-23 15:51:00 -0700 Global Logger.silencer switch for Logger#silence. r3757@sedna: jeremy | 2005-10-23 15:51:35 -0700 Correct changelogs git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add title case method to String to do, e.g., 'action_web_service'.titlecase ↵Marcel Molina2005-10-191-0/+16
| | | | | | # => 'Action Web Service'. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove generated code from app traces; improve accuracy of framework tracesNicholas Seckar2005-10-181-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2676 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update Exception extension to show the first few framework frames in an ↵Nicholas Seckar2005-10-161-0/+14
| | | | | | application trace. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add unit tests for exception extensionsNicholas Seckar2005-10-161-0/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated whiny nil to be more concise and useful.Nicholas Seckar2005-10-151-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2602 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Enumerable#first_matchNicholas Seckar2005-10-141-0/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Time#change should also reset usec when also resetting minutes ↵David Heinemeier Hansson2005-10-131-0/+5
| | | | | | #2459 [ikeda@dream.big.or.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Logger compatibility testJeremy Kemper2005-10-131-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3574@sedna: jeremy | 2005-10-13 11:16:51 -0700Jeremy Kemper2005-10-131-0/+69
| | | | | | | More precise Logger version test to account for distributions that don't keep Ruby and its stdlib in sync. Logger#silence yields self for convenience. Logger unit tests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added to_s(:db) to RangeDavid Heinemeier Hansson2005-10-091-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add :rfc822 as an option for Time#to_s (to get rfc822-formatted times)Jamis Buck2005-10-031-3/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added method access to OrdredOptionsDavid Heinemeier Hansson2005-09-301-0/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added test for looping in orderDavid Heinemeier Hansson2005-09-301-0/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added OrderedOptions array/hash for use with initializerDavid Heinemeier Hansson2005-09-301-0/+23
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed memory leak with Active Record classes when Dependencies.mechanism = ↵David Heinemeier Hansson2005-09-201-46/+0
| | | | | | :load #1704 [c.r.mcgrath@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Inflector.underscore for use with acronyms, so HTML becomes html ↵David Heinemeier Hansson2005-09-131-4/+11
| | | | | | instead of htm_l #2173 [k@v2studio.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed inflections for status, quiz, move #2056 [deirdre@deirdre.net]David Heinemeier Hansson2005-09-121-1/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash#reverse_merge, Hash#reverse_merge!, and Hash#reverse_update to ↵David Heinemeier Hansson2005-09-112-1/+13
| | | | | | ease the use of default options. Added :connector and :skip_last_comma options to Array#to_sentence git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#to_sentence that'll turn ['one', 'two', 'three'] into 'one, two, ↵David Heinemeier Hansson2005-09-111-0/+14
| | | | | | and three' #2157 [m.stienstra@fngtps.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added test to ensure that silence_warnings also returned its valueDavid Heinemeier Hansson2005-09-111-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Kernel#silence_warnings and puts it into use throughout the frameworkDavid Heinemeier Hansson2005-09-113-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added String#starts_with? and String#ends_with? #2118 [thijs@vandervossen.net]David Heinemeier Hansson2005-09-091-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make assert_valid_keys slightly more lenientDavid Heinemeier Hansson2005-09-091-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added String#at, String#from, String#to, String#first, String#last in ↵David Heinemeier Hansson2005-09-031-0/+14
| | | | | | ActiveSupport::CoreExtensions::String::Access to ease access to individual characters and substrings in a string serving basically as human names for range access. Added easy extendability to the inflector through Inflector.inflections (using the Inflector::Inflections singleton class) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make Time#last_month work when invoked on the 31st of a month.Jamis Buck2005-08-311-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Time.days_in_month, and make Time#next_month work when invoked on the ↵Jamis Buck2005-08-311-0/+24
| | | | | | 31st of a month git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Time#midnight would have a non-zero usec on some platforms #1836Jamis Buck2005-07-311-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed inflections of "index/indices" #1766 [damn_pepe@gmail.com]David Heinemeier Hansson2005-07-221-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Factor Fixnum and Bignum extensions into Integer classNicholas Seckar2005-07-191-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ordinalize to Fixnum and Bignum instancesNicholas Seckar2005-07-181-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added stripping of _id to String#humanize, so "employee_id" becomes ↵David Heinemeier Hansson2005-07-171-0/+1
| | | | | | "Employee" #1574 [Justin French] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1854 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Fixnum#ordinalize to turn 1.ordinalize to "1st", 3.ordinalize to ↵David Heinemeier Hansson2005-07-171-1/+38
| | | | | | "3rd", and 10.ordinalize to "10th" and so on #1724 [paul@cnt.org] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added more efficient implementation of the development mode reset of classes ↵David Heinemeier Hansson2005-07-071-1/+29
| | | | | | #1638 [Chris McGrath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More inflector fixes #1608David Heinemeier Hansson2005-07-051-14/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More inflector fixes #1599 [foamdino@gmail.com]David Heinemeier Hansson2005-07-041-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More inflectoring #1490David Heinemeier Hansson2005-07-021-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed photo/photos #1583David Heinemeier Hansson2005-07-021-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added new rules to the Inflector to deal with more unusual plurals ↵David Heinemeier Hansson2005-07-011-1/+11
| | | | | | mouse/louse => mice/lice, information => information, ox => oxen #1571 [foamdino@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed memory leak with Object#remove_subclasses_of, which inflicted a Rails ↵David Heinemeier Hansson2005-06-301-0/+18
| | | | | | application running in development mode with a ~20KB leak per request #1289 [c.r.mcgrath@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added tests for whiny nil #1476 [court3nay/marcel]David Heinemeier Hansson2005-06-251-21/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Increased accuracy of 1.year by accounting for leap years. The time ↵Jeremy Kemper2005-06-241-1/+1
| | | | | | extensions are not meant to be super-precise but this seems worth it since otherwise you lose a lot of days doing 40.years.ago. Closes #1488 [tuxie@dekadance.se] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance of Routes generation by a factor of 5 #1434 [Nicholas ↵David Heinemeier Hansson2005-06-242-0/+29
| | | | | | Seckar] Added named routes (NEEDS BETTER DESCRIPTION) #1434 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de