aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Switch to AS::TestCase for assert_deprecatedJeremy Kemper2008-11-151-2/+2
|
* Merge branch 'master' into testingJeremy Kemper2008-11-152-1/+9
|\
| * Added lambda merging to OptionMerger (especially useful with named_scope and ↵David Heinemeier Hansson2008-11-151-0/+8
| | | | | | | | with_options) [#740 state:committed] (Paweł Kondzior)
| * TimeZone: fix base offset for Sri Jayawardenepura. Anchor tests for zone ↵gbuesing2008-11-131-1/+1
| | | | | | | | offsets to more current date
* | Merge branch 'master' into testingJeremy Kemper2008-11-111-5/+5
|\|
| * Only track new constant definitions when we're reloading dependenciesJeremy Kemper2008-11-101-5/+5
| |
* | Just rescue exception rather than checking for both miniunit and test/unitJeremy Kemper2008-11-072-7/+3
| |
* | Subclass AS::TestCase to get custom assertionsJeremy Kemper2008-11-071-1/+1
| |
* | Rework testing extensions to reflect the recent miniunit upheavalJeremy Kemper2008-11-073-17/+25
| |
* | Remove direct TestCase mixins. Add miniunit compatibility.Jeremy Kemper2008-11-072-3/+3
|/
* Fix indentation mismatchJeremy Kemper2008-11-071-1/+1
|
* Increment the version of our modified memcache_client code to prevent users ↵Luca Guidi2008-11-061-0/+6
| | | | | | | | with the gem installed not seeing our changes. The changes will be submitted upstream. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1239 state:committed]
* Remove stuff that was deprecated in 2-1-stablePratik Naik2008-10-211-1/+0
|
* 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
|
* Skip tests that depend on memcached if not running.Doug Barth2008-10-172-18/+30
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Bring MemCacheStore and CompressedMemCacheStore inline with expected counter ↵Doug Barth2008-10-171-10/+0
| | | | | | manipulation semantics. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix cache counter semantics for MemoryCache, FileStoreCache, and ↵Doug Barth2008-10-171-22/+74
| | | | | | (presumably) the DRbStore. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* 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
|
* test nested hash with floatDan Barry2008-10-121-0/+12
| | | | | | [#652 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Made i18n simple backend able to store false values (and not confuse them ↵Tarmo Tänav2008-10-091-0/+16
| | | | | | | | | with nil or lack of value) Implemented support.array.skip_last_comma i18n key for Array#to_sentence, this also tests the ability to store false. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Mark utf-8 source encodingJeremy Kemper2008-10-061-0/+2
|
* Fix memoize_all for methods with punctuation [#1175 state:resolved]Eugene Pimenov2008-10-051-0/+5
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Add tests for ActiveSupport::Rescuable. Use ActiveSupport::Rescuable in ↵Pratik Naik2008-10-041-0/+75
| | | | ActionController::Base.
* 1.8 compatibility for random_number method on SecureRandom.Michael Koziarski2008-10-041-0/+4
| | | | 1.9 has its own version.
* Fix mismatched assertions.Michael Koziarski2008-10-041-2/+2
|
* added nicer failure reporting to #assert_difference to tell you the ↵madlep2008-10-031-0/+18
| | | | | | | expression that failed rather than just the expected and actual values Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1161 state:committed]
* 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>
* Modified ActiveSupport::Inflector#parameterize with code from slugalizer ↵Adam Cigánek2008-09-232-1/+10
| | | | | | | | | (http://github.com/henrik/slugalizer) Handles trailing and leading slashes, and squashes repeated separators into a single character. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1034 state:committed]
* Set encoding of the multibyte test helpers file to UTF-8 so the strings can ↵Manfred Stienstra2008-09-211-0/+2
| | | | be read by Ruby 1.9.
* Deprecated String#chars in favor of String#mb_chars.Manfred Stienstra2008-09-211-0/+6
|
* Move multibyte test helpers to a separate file and make the conformance ↵Manfred Stienstra2008-09-213-22/+26
| | | | tests run again.
* Add tests for u_unpack to make sure it raises an EncodingError on invalid ↵Manfred Stienstra2008-09-211-0/+11
| | | | UTF-8 strings.
* Non-string results from forwarded methods should be returned vertabim.Manfred Stienstra2008-09-211-7/+12
|
* All methods which normally return a string now return a proxy instance.Manfred Stienstra2008-09-211-7/+42
|
* Move with_kcode helper to abstract_unit. Add tests for multibyte string ↵Manfred Stienstra2008-09-213-19/+61
| | | | extensions.
* Add a test for ActiveSupport::Multibyte::Chars.consumes?.Manfred Stienstra2008-09-211-1/+8
|
* Simplify ActiveSupport::Multibyte and make it run on Ruby 1.9.Manfred Stienstra2008-09-215-584/+567
| | | | | | * Unicode methods are now defined directly on Chars instead of a handler * Updated Unicode database to Unicode 5.1.0 * Improved documentation
* 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>
* Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars ↵Manfred Stienstra2008-09-112-0/+10
| | | | | | | | | | values. - Adds String#acts_like_string? - Adds Chars#acts_like_string? Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1029 state:committed]