aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Yield the payload notifications for further modification (like adding the ↵José Valim2010-01-151-2/+2
| | | | result).
* Add instrument! to notifications which adds the result to the payload.José Valim2010-01-141-1/+11
|
* Do not send notifications when instrumentation raise an error.José Valim2010-01-131-7/+4
|
* Remove unneeded reliance on super -> method_missing quirkJeremy Kemper2010-01-071-0/+25
|
* instrumenter should be accessible from ActiveSupport::Notifications.José Valim2010-01-061-7/+10
|
* Autoload AS test caseJoshua Peek2010-01-041-1/+0
|
* Expose Instrumenter id in Notifications.José Valim2010-01-041-0/+4
|
* Skip isolation test tests until they workJeremy Kemper2010-01-021-3/+3
|
* Let Integer#multiple_of? accept zero as argumentXavier Noria2010-01-021-0/+5
| | | | | | [#2982 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fixed some bugs and fixed some tests in new SAX-based XmlMini backends.Willem van Bergen2010-01-013-9/+12
| | | | | | [#3636 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Added SAX-based parser for XmlMini, using LibXMLWillem van Bergen2010-01-011-0/+194
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Added SAX-based parser for XmlMini, using Nokogiri.Willem van Bergen2010-01-011-0/+216
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Code cleanup, bugfixes and speed improvements for the Nokogiri and LibXML ↵Willem van Bergen2010-01-012-2/+47
| | | | | | | | XmlMini backends [#3641 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix inheritance issue with new callbacks.José Valim2010-01-011-0/+35
|
* Allow ActiveSupport's isolation tests to run with MiniTest on 1.9Carl Lerche2009-12-301-123/+143
|
* Setup and teardown now use new callbacks.José Valim2009-12-301-4/+5
|
* Added Object#presence that returns the object if it's #present? otherwise ↵David Heinemeier Hansson2009-12-271-2/+7
| | | | returns nil [DHH/Colin Kelley]
* String#exclude? core extension: inverse of #include?Jeremy Kemper2009-12-271-0/+7
|
* 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
|