aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* Allow String#parameterize to accept a separator [#2157 state:resolved]Sam Granieri2009-03-071-0/+18
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Deprecated warnings for :skip_last_command and :connector of to_sentence ↵Guillermo Álvarez2009-02-221-0/+18
| | | | | | [#1847 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Broaden URI.unescape fix to all affected 1.9.x by checking for broken ↵Jeremy Kemper2009-02-201-5/+6
| | | | behavior instead of specific patchlevel
* Ruby 1.9.1p0's URI.decode() bug fixmoro2009-02-201-0/+11
| | | | | | backport to fix Ruby 1.9.1p0 bug on [ruby-dev:38005]. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Remove obsolete silence_warnings wrappers from TZInfo-dependent tests in ↵Levin Alexander2009-02-143-274/+178
| | | | ActiveSupport [#1914 state:resolved]
* Array#wrap should use #to_ary so association collections and named scopes ↵Will Bryant2009-02-101-0/+10
| | | | | | | | are not re-wrapped [#1935 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Time#to_s(:rfc822) uses #formatted_offset instead of unreliable and ↵Zachary Zolton2009-02-091-0/+4
| | | | non-standard %z directive [#1899 state:resolved]
* Make TimeWithZone#to_formatted_s an alias to TimeWithZone#to_s [#1796 ↵Levin Alexander2009-02-081-0/+6
| | | | state:resolved]
* Introduce Array.wrap(foo) to wrap the argument in an array unless it's ↵Jeremy Kemper2009-02-061-0/+24
| | | | already an array. Wraps nil as an empty array. Use instead of Array(foo) and foo.to_a since they treat String as Enumerable.
* Merge docrailsPratik Naik2009-01-181-2/+2
|
* Change Object#try to raise NoMethodError on private methods and always ↵Pratik Naik2009-01-131-9/+10
| | | | return nil when Object is nil [Pratik Naik, Lawrence Pit]
* TimeWithZone#xmlschema accepts optional fraction_digits argument [#1725 ↵Nicholas Dainty2009-01-111-0/+9
| | | | state:resolved]
* Object#tap for Ruby < 1.8.7Jeremy Kemper2009-01-071-0/+8
|
* TimeWithZone#- gives correct result with wrapped DateTime, and with DateTime ↵gbuesing2009-01-041-0/+9
| | | | argument
* MaKe Hash#slice! return removed values, akin to Array [#971 state:resolved]trans2008-12-261-3/+17
| | | | Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
* Add :allow_nil option to delegate [#1127 state:resolved]Sergio Gil2008-12-211-0/+27
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Added a :camelize option to ActiveRecord and Hash to_xml serialization and ↵Bruce Krysiak2008-12-101-0/+7
| | | | | | from_xml deserialization Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Change Array#to_sentence I18n options to pass comma and space character from ↵Akira Matsuda2008-12-081-9/+10
| | | | | | | | outside. [#1397 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Explicitly require Builder in test that uses itJeremy Kemper2008-11-241-0/+1
|
* Revert "Hack builder to look for fast_xs instead of insisting on its own ↵Jeremy Kemper2008-11-241-1/+0
| | | | | | String#to_xs" This reverts commit 5d3712a81e502f46b2745d238d9bb76fcdb31f5b.
* Allow optional arguments and/or block for Object#try like Object#send does. ↵Eloy Duran2008-11-241-0/+7
| | | | | | | | [#1425 state:resolved] Original suggestion by Pat Nakajima. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Hack builder to look for fast_xs instead of insisting on its own String#to_xsJeremy Kemper2008-11-231-0/+1
|
* Require mocha >= 0.9.0 for AS testsJeremy Kemper2008-11-227-315/+291
|
* Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for ↵David Heinemeier Hansson2008-11-221-1/+1
| | | | cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH]
* Reduced the number of literal aliases to the range that has actually seen ↵David Heinemeier Hansson2008-11-211-6/+2
| | | | personal use. With the massive savings in overhead, I was able to fit Array#forty_two
* Ensure only delegations to methods can have an automatic prefix. [#1235 ↵Daniel Schierbeck2008-11-211-0/+11
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Enumerable#none? conforms to Ruby 1.8.7 behaviorJeremy Kemper2008-11-191-1/+2
|
* Added Object#try. ( Taken from http://ozmm.org/posts/try.html ) [Chris ↵Pratik Naik2008-11-191-0/+25
| | | | Wanstrath]
* Added Enumerable#none? to check that none of the elements match the block ↵Damian Janowski2008-11-191-0/+10
| | | | | | [#1408 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Switch to AS::TestCase for assert_deprecatedJeremy Kemper2008-11-151-2/+2
|
* Subclass AS::TestCase to get custom assertionsJeremy Kemper2008-11-071-1/+1
|
* Rework testing extensions to reflect the recent miniunit upheavalJeremy Kemper2008-11-071-4/+4
|
* Fix indentation mismatchJeremy Kemper2008-11-071-1/+1
|
* TimeWithZone#freeze: preload instance variables so that we can actually freezegbuesing2008-10-191-0/+13
|
* Moved test object instantiation to a setup method.Daniel Schierbeck2008-10-191-9/+9
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Made the :prefix option on Module#delegate accept a custom prefix.Daniel Schierbeck2008-10-191-0/+9
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Added :prefix option to Module#delegate.Daniel Schierbeck2008-10-191-0/+12
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix test warningsPratik Naik2008-10-171-2/+2
|
* Enhance testing for fractional days and weeks. Update changelog.gbuesing2008-10-132-13/+17
|
* Added deprecated warning messages to Float#months and Float#years deprications.Tom Lea2008-10-131-8/+10
|
* Deprecated Float#years and Float#months, moved Numeric#years and ↵Tom Lea2008-10-131-0/+18
| | | | Numeric#months into Integer.
* Time#advance recognizes fractional days and weeks [#970 state:resolved]Tom Lea2008-10-131-0/+34
|
* Adds failed test case for slicing hash with indifferent access with symbol keysadam2008-09-231-0/+10
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Deprecated String#chars in favor of String#mb_chars.Manfred Stienstra2008-09-211-0/+6
|
* Move with_kcode helper to abstract_unit. Add tests for multibyte string ↵Manfred Stienstra2008-09-211-6/+47
| | | | extensions.
* Fixed Time#end_of_quarter to not blow up on May 31st [#313 state:resolved]Carlos Brando2008-09-191-0/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* TimeWithZone #wday, #yday and #to_date avoid trip through #method_missinggbuesing2008-09-141-1/+3
|
* Add thorough tests for Time-object #past?, #future? and #today. Fix ↵gbuesing2008-09-144-41/+195
| | | | TimeWithZone #today? to use #time instead of #utc for date comparison. Update changelog. [#720 state:resolved]
* Introduce convenience methods past?, today? and future? for Date and Time ↵Clemens Kofler2008-09-144-15/+79
| | | | classes to facilitate Date/Time comparisons.
* Ensure Hash#except is allowed on a frozen hash. References #382Mislav Marohnić2008-09-131-0/+14
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>