aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
Commit message (Collapse)AuthorAgeFilesLines
...
* | Move Numeric#to_utc_offset_s to TimeZone.seconds_to_utc_offsetJeremy Kemper2009-03-231-15/+0
| |
* | Only require builder at startup if we need to monkey with its String#to_xs ↵Jeremy Kemper2009-03-211-1/+0
| | | | | | | | demands
* | * Introduce ActiveSupport.core_ext Integer, %w(conversions time etc)Jeremy Kemper2009-03-212-20/+1
|/ | | | | | * Convert some extension modules to simply reopening the class * Remove deprecated Float time extensions * Fold Base64 extension into ActiveSupport::Base64 since stdlib Base64 is gone
* Use xmlschema when serializing TimeWithZones to xml [#2223 state:resolved]Jonathan del Strother2009-03-121-0/+9
| | | | | | When using Hash#to_xml, any TimeWithZone objects now use xmlschema (iso8601), rather than a simple TimeWithZone#to_s. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure HWIA#reverse_merge! retrurns HWIA [#421 state:resolved]Bradford Folkens2009-03-121-0/+7
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* adding more nokogiri tests and making the main rails tests passAaron Patterson2009-03-101-1/+6
| | | | | | [#2190 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Require libxml-ruby 0.9.4 or 0.9.7 pending a segfault bugfix for 1.0.Jeremy Kemper2009-03-091-1/+2
| | | | Delegate parsing to a switchable backend.
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-087-17/+17
| | | | [#1617 state:resolved]
* 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
|