aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Cater for DST changes when converting Times to DateTimes. Closes #10068 ↵Michael Koziarski2007-11-053-6/+30
| | | | | | [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8076 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add new superclass_delegating_accessors. Similar to class inheritable ↵Michael Koziarski2007-10-291-0/+105
| | | | | | attributes but with subtly different semantics. [Koz, tarmo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change JSON to encode %w(< > &) as 4 digit hex codes to be in compliance ↵Rick Olson2007-10-291-2/+2
| | | | | | with the JSON spec. Closes #9975 [josh, chuyeow, tpope] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure default_test is tested for ActiveSupport::TestCase tooMichael Koziarski2007-10-261-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8041 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make Default Test work with both ruby 1.8.4 and 1.8.6. [DrMark] Closes #10003Michael Koziarski2007-10-261-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix JSON encoding/decoding bugs dealing with /'s. Closes #9990 [Rick, ↵Rick Olson2007-10-262-9/+11
| | | | | | theamazingrando] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8026 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document Enumerable and Hash #to_json. Add test for hash with integer key. ↵Jeremy Kemper2007-10-241-0/+1
| | | | | | Closes #9970. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#to_xml handles symbol values. Closes #9954.Jeremy Kemper2007-10-231-2/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#symbolize_keys behaves well with integer keys. Closes #9890.Jeremy Kemper2007-10-161-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Multibyte: String#slice supports regexp argument. Closes #9646.Jeremy Kemper2007-10-151-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add a time to duplicable testsJeremy Kemper2007-10-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* object.duplicable? returns true if object.dup is safe. False for nil, true, ↵Jeremy Kemper2007-10-151-0/+22
| | | | | | false, symbols, and numbers; true otherwise. References #9333. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Time, Date and DateTime #advance accept :weeks option. Closes #9866.Jeremy Kemper2007-10-133-4/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7868 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Time#years_ago and #years_since from leap days. Closes #9865.Jeremy Kemper2007-10-131-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Time and DateTime#advance accept :hours, :minutes, and :seconds options. ↵Jeremy Kemper2007-10-132-3/+25
| | | | | | Closes #9825. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Date#years_ago and #years_since from leap days. Closes #9864.Jeremy Kemper2007-10-132-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor Time and Date#months_since and #months_ago to use #advance. Closes ↵Jeremy Kemper2007-10-133-0/+12
| | | | | | #9863. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Style update for new Range extensionsJeremy Kemper2007-10-091-6/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Add Range#overlaps?(range), Range#include?(range), and Range#step without ↵Michael Koziarski2007-10-081-0/+51
| | | | | | a block. [brandon] Closes #9746 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7800 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct BufferedLogger#level? checks. Closes #9806.Jeremy Kemper2007-10-071-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7775 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* String#to_xs uses the fast_xs extension if available for Builder speedup.Jeremy Kemper2007-10-071-7/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Disambiguate Time, Date, and DateTime#to_json formatting. Closes #9750.Jeremy Kemper2007-10-051-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Disabling auto_flushing still flushes when the buffer hits a maximum size, ↵Jeremy Kemper2007-10-041-0/+13
| | | | | | as a failsafe against memory-gobbling. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#to_json takes :only or :except options to specific or omit certain hash ↵Jeremy Kemper2007-10-041-0/+21
| | | | | | keys. Enumerable#to_json passes through its options to each element. Closes #9751. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Some platforms include colon in timezone offset, some don't. References #9744.Jeremy Kemper2007-10-032-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7733 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BufferedLogger#auto_flushing = N flushes the log every N messages. Buffers ↵Jeremy Kemper2007-10-031-7/+34
| | | | | | with an array instead of string. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-022-5/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Date#xmlschema for dates outside the range of what can be created with ↵David Heinemeier Hansson2007-10-012-2/+23
| | | | | | Time (closes #9744) [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed JSON encoding to use quoted keys according to the JSON standard ↵David Heinemeier Hansson2007-09-301-29/+5
| | | | | | (closes #8762) [choonkat/chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat for hash_ext_testJeremy Kemper2007-09-291-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mark Test::Unit#assert_difference incompatibility with Ruby 2 due to ↵Jeremy Kemper2007-09-291-32/+35
| | | | | | Proc#binding usage git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7682 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-284-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BufferedLogger#add converts the message to a string. Closes #9724.Jeremy Kemper2007-09-281-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dependencies Ruby 1.9 compatJeremy Kemper2007-09-271-31/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Alias Object#send to send! for Ruby 1.9 forward compatibility.Jeremy Kemper2007-09-271-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Convert the Ruby 1.9 enumerator to an arrayJeremy Kemper2007-09-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mark String#each_char test failing with Ruby 1.9Jeremy Kemper2007-09-271-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract InflectorTestCases so both inflector and string inflections tests ↵Jeremy Kemper2007-09-274-217/+225
| | | | | | can use them. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Object#copy_instance_variables_from Ruby 1.9 compatJeremy Kemper2007-09-271-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mark another Duration test failing with Ruby 1.9Jeremy Kemper2007-09-271-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prefer class_eval with block to many sends for Ruby 1.9 compatJeremy Kemper2007-09-271-53/+72
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hax to workaround private send for Ruby 1.9. Consider moving to send! and ↵Jeremy Kemper2007-09-271-7/+7
| | | | | | aliasing to send for < 1.9. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7651 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use instance_variable_defined? instead of instance_variables.include? to ↵Jeremy Kemper2007-09-272-11/+11
| | | | | | account for string/symbol differences between 1.8 and 1.9 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backport Object#instance_variable_defined? for Ruby < 1.8.6.Jeremy Kemper2007-09-271-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mark Duration test failing with Ruby 1.9Jeremy Kemper2007-09-271-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Date/Time/DateTime Ruby 1.9 compatJeremy Kemper2007-09-272-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change test for ruby 1.9 crashJeremy Kemper2007-09-271-6/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BufferedLogger#add doesn't modify the message argument. Closes #9702.Jeremy Kemper2007-09-271-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include the testsDavid Heinemeier Hansson2007-09-251-0/+41
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Object#instance_exec produces fewer garbage methods.Jeremy Kemper2007-09-241-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7621 5ecf4fe2-1ee6-0310-87b1-e25e094e27de