aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars ↵Manfred Stienstra2008-09-111-0/+6
| | | | | | | | | | values. - Adds String#acts_like_string? - Adds Chars#acts_like_string? Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1029 state:committed]
* Don't run 32bit dependant assertions in 64bit environmentsTarmo Tänav2008-09-041-4/+10
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Add each_with_object from 1.9 for a more convenient alternative to inject.Adam Keys2008-09-031-0/+5
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#962 state:committed]
* Database connections are now pooled, one pool per #establish_connection call.Jeremy Kemper2008-09-022-9/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pools start out empty and grow as necessary to a maximum size (default is 5, configure size with key 'pool' in your database configuration). If no connections are available, a thread will wait up to a 'wait_timeout' time (default is 5 seconds). Connections are verified and reset when checked out from the pool (usually upon first access to ActiveRecord::Base.connection), and returned back to the pool after each request. If you would like to use connection pools outside of ActionPack, there is an ActiveRecord::Base.connection_pool method that gives you access to the pool, and you can manually checkout/checkin connections, or supply a block to ActiveRecord::Base.connection_pool.with_connection which takes care of the checkout/checkin for you. [#936 state:resolved]
| * Merge rexml-expansion-fix gem into activesupport.Michael Koziarski2008-09-021-0/+21
| | | | | | | | | | Addresses the security issue documented at: * http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
| * Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-312-9/+4
| | | | | | | | | | | | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* | Module#synchronize: Add testcase to ensure that singleton methods can be wrappedNick2008-08-291-3/+17
| |
* | Add method punctuation handling to #synchronizeNick2008-08-291-0/+14
| |
* | Adds Module#synchronize for easier method-level synchronization.Nick2008-08-291-0/+57
|/
* Fix Ruby's Time marshaling bug in pre-1.9 versions of Ruby: utc instances ↵Luca Guidi2008-08-271-0/+34
| | | | are now correctly unmarshaled with a utc zone instead of the system local zone [#900 state:resolved]
* Work around frozen Date memoizationJeremy Kemper2008-08-251-4/+12
|
* camelize(:lower) should always downcase first character. [#696 state:resolved]Amos King2008-08-221-0/+4
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Mark Class as not being duplicable. [#829 state:resolved]Frederick Cheung2008-08-211-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use current umask when testing the expected file mode [#823 state:resolved]S. Brent Faulkner2008-08-131-4/+4
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Make File.atomic_write copy the original permissions or use the directories ↵Joshua Peek2008-08-061-6/+44
| | | | default.
* If it doesn't overflow, it won't have a .start method. So don't run the ↵Michael Koziarski2008-07-201-1/+1
| | | | second assertion either
* Handle the case where 64bit time_t won't overflow.Michael Koziarski2008-07-201-1/+6
|
* Add extra tests to ensure Hash#slice works with an array as a key. #613MatthewRudy2008-07-171-0/+21
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>