aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Extract repetitive methodJeremy Kemper2009-08-091-33/+37
|
* Uses &:fooJeremy Kemper2009-08-091-0/+1
|
* Remove unnecessary &block from Range#sum and add tests for (num..float).sumPratik Naik2009-08-091-0/+1
|
* Make enumerable test run stand alonePratik Naik2009-08-091-0/+1
|
* Optimize Range#sum only for integers [#2489]José Valim2009-08-091-0/+1
|
* Setting usec (and nsec for Ruby 1.9) on Time#end_of_* methods [#1255 ↵Hugo Peixoto2009-08-092-24/+24
| | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Optimize Range#sum to use arithmetic progression when a block is not given ↵José Valim2009-08-091-0/+2
| | | | | | [#2489]. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix deprecating =-methods by using send [#2431 status:resolved]Michael Siebert2009-08-091-0/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Enumerable#sum now works will all enumerables, even if they don't respond to ↵Marc-Andre Lafortune2009-08-081-0/+4
| | | | | | | | :size [#2489 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fixed a bug in JSON decoding with Yaml backend, where a combination of ↵Bas Van Klinkenberg2009-08-081-1/+7
| | | | | | dates, escaped or unicode encoded data and arrays would make the parser fail with a ParseError exception. [#2831 state:resolved] Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Extract String#bytesize shimJeremy Kemper2009-08-011-0/+7
|
* * don't include String#% for Ruby 1.9Sven Fuchs2009-07-181-5/+8
| | | | | | | | | | * raise a KeyError exception for missing named interpolation args (like Ruby 1.9 does) * raise an ArgumentError when mixing named and unnamed placeholders (like Ruby 1.9 does) * improve docs and comply a bit more w/ Rails names/conventions [#2870 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ruby 1.9 style String interpolation support for lower ruby versions. Thanks ↵Lawrence Pit2009-07-071-0/+62
| | | | | | to code from Masao Mutoh's GetText gem. [#2870 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>
* Adds support for def self.setup in isolation tests for setup that should be ↵Yehuda Katz + Carl Lerche2009-07-021-2/+15
| | | | run only once in the parent
* Fixed ActiveSupport::OrderedHash::[] work identically to ::Hash::[] in ruby ↵Brian Abreu2009-07-021-1/+24
| | | | | | 1.8.7 [#2832 state:resolved] Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
* make #inspect if zero length duration return '0 seconds' instead of empty ↵Levin Alexander2009-07-021-0/+1
| | | | | | string [#2838 state:resolved] Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
* Fixes bug where Memcached connections get corrupted when an invalid expire ↵Yehuda Katz + Carl Lerche2009-07-011-0/+19
| | | | is passed in [#2854 state:resolved]
* JSON.escape returns UTF-8 stringsJeremy Kemper2009-07-011-2/+7
| | | | [#2849 state:resolved]
* Forgot to commit the new file. This is slightly embarrassing.Yehuda Katz + Carl Lerche2009-07-011-0/+2
|
* Apparently stdlib isn't std enoughYehuda Katz + Carl Lerche2009-07-011-4/+6
|
* Modify isolation test to require a file not in use anywhere in RailsYehuda Katz + Carl Lerche2009-07-011-4/+4
|
* Merge branch 'master' of git@github.com:rails/railsJeremy Kemper2009-07-015-3/+178
|\
| * Original cache objects should not be immutable [#2860 state:resolved]Yehuda Katz + Carl Lerche2009-07-011-0/+6
| | | | | | Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
| * ensure Inflector.camelize works with symbols [#2856 state:resolved]Yehuda Katz + Carl Lerche2009-07-012-0/+13
| | | | | | Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
| * Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 ↵Yehuda Katz + Carl Lerche2009-07-011-3/+0
| | | | | | | | state:resolved]
| * Crazy hacks to get the Isolation testing module to work on non forking ↵Yehuda Katz + Carl Lerche2009-06-301-0/+2
| | | | | | | | environments
| * Created AS::Testing::Isolation which runs each test case in a separate process.Yehuda Katz + Carl Lerche2009-06-301-0/+141
| | | | | | | | | | This allows for testing rails bootup (files are required, correct constants are set, etc...). Currently, this is implemented via forking only, but we will add support for jruby and windows shortly.
| * Use stubbing instead of sleep() in File store cache testsPratik Naik2009-06-211-3/+9
| |
| * Add expiry support File cache store [#1693 state:resolved] [Roman ↵Pratik Naik2009-06-211-0/+10
| | | | | | | | Shterenzon, Pratik Naik]
* | Friendlier runtime exception if delegatee is nilJeremy Kemper2009-06-181-1/+1
|/
* Move model naming into ActiveModelJoshua Peek2009-06-171-28/+0
|
* moves reopening of core classes to add generic stuff from Action Pack to ↵Xavier Noria2009-06-134-0/+46
| | | | | | | | AS/core_ext and adds tests [#2798 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add #element and #collection to ModelNameJeremy Kemper2009-06-081-0/+8
|
* JSON: split encoding and coercionJeremy Kemper2009-06-081-7/+12
|
* String #to_time and #to_datetime: handle fractional seconds [#864 ↵Jason Frey (Fryguy)2009-06-071-0/+3
| | | | state:resolved]
* Pull in time extensions alsoJeremy Kemper2009-06-051-1/+1
|
* Further cleaning up new callbacksYehuda Katz2009-06-022-44/+44
|
* Simplify callbacks to use less metaprogrammingYehuda Katz2009-06-022-40/+40
|
* AS::Concern redefines "include" to lazy include modules as dependenciesJoshua Peek2009-05-291-3/+3
|
* AS::Concern includes InstanceMethods module if it existsJoshua Peek2009-05-291-4/+13
|
* Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵Joshua Peek2009-05-281-10/+10
| | | | "included" block DSL into separate modules. But, unify both approaches under AS::Concern.
* Ensure Memcache local cache returns duplicated values [#2302 state:resolved]Joshua Peek2009-05-271-0/+9
|
* Remove 'core' fluff. Hookable ActiveSupport.load_all!Jeremy Kemper2009-05-206-6/+6
|
* Allow Module#depends_on to accept multiple modulesPratik Naik2009-05-211-0/+11
|
* Corrected new callbacks semantics with regards to using objects for around ↵Yehuda Katz + Carl Lerche2009-05-191-0/+62
| | | | filters.
* Use duck typing to also allow MemCache-like object when initializing a ↵Bryan Helmkamp2009-05-191-0/+6
| | | | | | MemCacheStore Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Allow MemCacheStore to be initialized with a MemCache object instead of ↵Bryan Helmkamp2009-05-191-4/+10
| | | | addresses and options
* Add ability to get multiple memcached keys at the same time (via ↵Joe Van Dyk2009-05-181-0/+9
| | | | | | MemCacheStore#read_multi). Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* load the JSON Backend lazily. If the JSON gem is already loaded, use the ↵rick2009-05-171-0/+3
| | | | JSONGem backend by default.
* Add support for parsing XML and JSON from an IO as well as a string [#2659 ↵Brian Lopez2009-05-172-0/+27
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>