aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Remove ActionView inline logging to ActiveSupport::Notifications and create ↵José Valim2009-12-261-12/+10
| | | | ActionController::Base#log_event, so everything can be logged within one listener. Also expose log_process_action as a hook for different modules to include their own information during the action processing. This allow ActiveRecord to hook and any other ORM. Finally, this commit changes 'Processing' and 'Rendering' in logs to 'Processed' and 'Rendered' because at the point it's logged, everying already happened.
* String#<< should work for any object which responds to :to_str, so enable ↵José Valim2009-12-261-0/+24
| | | | this without the performance hit and make Fixnum safe by default.
* Fix whiny_nil tests, improve error messages and make CI happy.José Valim2009-12-251-6/+7
|
* Fix ActiveSupport::JSON encoding of control characters [\x00-\x1f]Dwayne Litzenberger2009-12-231-1/+3
| | | | | | | | | | | | | | According to RFC 4627, only the following Unicode code points are allowed unescaped in JSON: unescaped = %x20-21 / %x23-5B / %x5D-10FFFF However, ActiveSupport::JSON did not escape the range %x00-1f. This caused parse errors when trying to decode the resulting output. [#3345 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add test for TimeWithZone#to_i with wrapped DateTimeGeoff Buesing2009-12-151-0/+6
|
* Added #to_i to DateTime in ActiveSupport so #to_yaml works correctly on ↵Serguei Filimonov2009-12-151-0/+4
| | | | ActiveRecord models with DateTime attributes.
* Add Enumerable#exclude? to bring parity to Enumerable#include? and avoid if ↵David Heinemeier Hansson2009-12-141-0/+5
| | | | !x.include?/else calls [DHH]
* Modify backtrace test to take implementations with slightly different ↵Yehuda Katz2009-12-131-1/+1
| | | | backtrace output into consideration.
* Reorganize autoloads:Carlhuda2009-12-023-0/+84
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* Failing tests for to_param/to_query not escaping "[]"Joshua Peek2009-12-021-4/+4
|
* Notifications: synchronous fanout queue pushes events to subscribers rather ↵Jeremy Kemper2009-11-291-0/+10
| | | | than having them concurrently pull
* Notifications: extract central Notifier, cordon off the internal Fanout ↵Jeremy Kemper2009-11-281-158/+112
| | | | implementation, and segregate instrumentation concerns
* Expose a simple Queue#wait to block until all notifications are drainedJeremy Kemper2009-11-281-1/+1
|
* Revert "Create SyncListener. Since they do not rely on Thread, they can be ↵Jeremy Kemper2009-11-281-16/+1
| | | | | | | | used on Google App Engine." Take a step back on this API direction. This reverts commit 8104f65c3225453d13307c3c2733c2a8f99e491a.
* Create SyncListener. Since they do not rely on Thread, they can be used on ↵José Valim2009-11-231-1/+16
| | | | | | Google App Engine. Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Repair time dependenciesJeremy Kemper2009-11-144-1/+5
|
* No need for test stubJeremy Kemper2009-11-141-2/+2
|
* Consolidate date & time landscape: require 'active_support/time'Jeremy Kemper2009-11-143-3/+3
|
* Notifications: queue.drained? for testability in place of brittle sleepsJeremy Kemper2009-11-131-10/+14
|
* Fix duration check for longer sleepJeremy Kemper2009-11-131-1/+1
|
* CI: slow down brittle notifications testsJeremy Kemper2009-11-131-9/+10
|
* Ruby 1.9.2: fix broken to_ary expectationJeremy Kemper2009-11-131-1/+3
|
* Ruby 1.9.2: disallow explicit coercion via method_missing. Only give ↵Jeremy Kemper2009-11-132-16/+24
| | | | friendly nil errors for Array and Active Record methods.
* Test that Array.wrap works with proxy objects and structsJeremy Kemper2009-11-131-0/+20
|
* Avoid adding component lib/ to load path multiple timesJoshua Peek2009-11-091-1/+2
|
* Always add AS lib/ to path when running its test suiteJoshua Peek2009-11-091-4/+4
|
* Remove automatic rubygems loading from AS test runnerJoshua Peek2009-11-091-9/+1
|
* DittoJeremy Kemper2009-11-091-0/+1
|
* Fix missing dependencyJeremy Kemper2009-11-091-0/+1
|
* Enumerable#none? is not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-11/+0
|
* Integer#even? and Integer#odd? are not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-16/+0
|
* String#each_char is not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-11/+0
|
* String#start_with? and String#end_with? are not needed for Ruby >= 1.8.7, ↵Xavier Noria2009-11-091-8/+0
| | | | leaves their plural aliases though
* String#bytesize is not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-7/+0
|
* Object#tap is not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-9/+0
|
* Symbol#to_proc is not needed for Ruby >= 1.8.7Xavier Noria2009-11-093-11/+0
|
* Object#instance_variable_defined? is not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-7/+0
|
* Work around assert_raise limitationJeremy Kemper2009-11-081-3/+3
|
* Ruby 1.9.2: work around changes to flatten and nil.to_strJeremy Kemper2009-11-081-3/+3
|
* Fix OrderedHash#replaceChris Hapgood2009-11-051-0/+7
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Make ActiveSupport::Chars#limit run on Ruby 1.9.Manfred Stienstra2009-11-041-29/+27
|
* Add ActiveSupport::Multibyte::Chars#limit.Manfred Stienstra2009-11-041-0/+59
| | | | | | | | | | The limit method limits the number of bytes in a string. Useful when the storage space of the string is limited, for instance in a database column definition. Sharpen up the implementation of translate offset. [#3192 state:committed]
* Fix chars.reverse for multibyte decomposed stringsMatias Flores2009-11-021-0/+11
| | | | | | [#597 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Clarify date/time dependenciesJeremy Kemper2009-11-021-3/+3
|
* Consolidate Object#to_param and #to_query core extensionsJeremy Kemper2009-11-026-68/+62
|
* Ruby 1.9.2: URI.escape is obsoleteJeremy Kemper2009-11-021-2/+6
|
* Ruby 1.9 doesn't recognize EM SPACE as whitespace, breaking String#stripJeremy Kemper2009-11-021-1/+7
|
* Give useful test:isolated failuresJeremy Kemper2009-11-021-2/+2
|
* Allow :instance_reader to be given to superclass_delegating_accessor as well.José Valim2009-11-011-0/+7
|
* Change Event#thread_id to #transaction_id. Defaults to one "transaction" per ↵Yehuda Katz2009-10-281-0/+20
| | | | thread but you can explicitly declare the start of a new one. This makes it possible for each request to have it own id.