aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* code gardening: we have assert_(nil|blank|present), more concise, with ↵Xavier Noria2010-08-171-2/+2
| | | | better default failure messages - let's use them
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-1429-165/+165
| | | | 's/[ \t]*$//' -i {} \;)
* adds test coverage to ensure DateTime#advance processes first the date ↵Xavier Noria2010-08-051-12/+19
| | | | deltas, and then the time deltas
* adding test for respond_to cache_key and cleaning up the ENV settingsNeeraj Singh2010-07-281-14/+33
|
* test cases for rails_app_version in AS cache.rbNeeraj Singh2010-07-281-0/+14
|
* adding more test cases for expand_cache_keyNeeraj Singh2010-07-281-0/+10
|
* adds test coverage for edge-cases of Array.wrap, and better documentation ↵Xavier Noria2010-07-281-0/+20
| | | | for how it differs from Kernel#Array
* This is a hash in 1.9.2Santiago Pastorino2010-07-261-1/+1
|
* fixing space errorsAaron Patterson2010-07-261-4/+4
|
* Test to ensure that falsy objects aren't wrapped by deprecation proxiesLeigh Caplan2010-07-261-0/+22
|
* XmlMini.rename_key emits valid xml with dasherizeBernerd Schaefer2010-07-261-0/+49
| | | | | | | | This resolves issues for libraries which use '_' prefixed keys in their attributes hash, such as Mongoid. A key like "_id" or "_type" will no longer be converted to "<-id>" and "<-type>". Signed-off-by: wycats <wycats@gmail.com>
* This is for making sure const_missing is triggered without warningsSantiago Pastorino2010-07-262-5/+8
|
* strengthening the test suite for rescue_fromNeeraj Singh2010-07-261-0/+23
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* strengthening the rescue_from test suitesNeeraj Singh2010-07-261-0/+14
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix a bug where requires inside of autoloads were being added to the ↵wycats2010-07-264-0/+61
| | | | autoloaded_constants list, causing mayhem. [#5165 state:resolved]
* Object#returning removedSantiago Pastorino2010-07-251-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert the previous three commits.José Valim2010-07-251-9/+0
| | | | | | * AS::Notifications#instrument should not measure anything, it is not its responsibility; * Adding another argument to AS::Notifications#instrument API needs to be properly discussed;
* use a hash to collect optional statistics about the instrumentationAaron Patterson2010-07-251-0/+9
|
* Removing one AS/lib ruby and rake adds to $LOAD_PATHSantiago Pastorino2010-07-251-0/+1
|
* Get rid of instrumenter.elapsed.José Valim2010-07-241-9/+0
|
* Make this test, test againSantiago Pastorino2010-07-241-2/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Removes unused varsSantiago Pastorino2010-07-248-9/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Makes restore previosly saved warnings_on_first_load value and avoid warningSantiago Pastorino2010-07-241-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* These tests are trusting in the order of the elements so use OrderedHash ↵Santiago Pastorino2010-07-211-2/+3
| | | | instead of Hash
* Test Hash#to_param escapes keys and valuesSantiago Pastorino2010-07-221-0/+4
| | | | [#5175]
* Hash#to_param is doesn't use sort anymore, some tests added for Hash#to_paramSantiago Pastorino2010-07-221-0/+25
|
* Add a test for elapsed and require missing benchmark file.José Valim2010-07-201-17/+13
|
* fix mixed encoding logs can't be logged.Kouhei Sutou2010-07-192-1/+19
| | | | | | | [#4807 state:committed] Signed-off-by: Kouhei Sutou <kou@cozmixng.org> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Float comparison adjustmentSantiago Pastorino2010-07-181-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Don't rely on implementation-specific order-dependence of array comparisons ↵Nick Sieger2010-07-171-4/+5
| | | | | | in unit tests Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* We shouldn't rely on float comparison, delta added just in case float ↵Santiago Pastorino2010-07-121-3/+3
| | | | representation of this values aren't equal
* Improve bang method defs, make slice! operate in-place. [#5028 state:resolved]Norman Clarke2010-07-081-16/+25
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Define a convention for descendants and subclasses.José Valim2010-07-053-73/+24
| | | | | | The former should be symmetric with ancestors and include all children. However, it should not include self since ancestors + descendants should not have duplicated. The latter is symmetric to superclass in the sense it only includes direct children. By adopting a convention, we expect to have less conflict with other frameworks, as Datamapper. For this moment, to ensure ActiveModel::Validations can be used with Datamapper, we should always call ActiveSupport::DescendantsTracker.descendants(self) internally instead of self.descendants avoiding conflicts.
* Time has it own implementation of xmlschema, now AMo doesn't depend on TZInfoSantiago Pastorino2010-07-021-2/+4
| | | | | | [#4979 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* AS json refactor, move to_json implementation to core_ext and a cleanup a ↵Santiago Pastorino2010-07-011-0/+1
| | | | bit the code
* fix failure if behavior is not define and try use the defaultCyril Mougel2010-07-011-0/+7
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add the possibility to have several behaviors in AS::Deprecation.José Valim2010-07-011-0/+13
|
* Fix ActiveSupport::Multibyte::Chars#slice for empty strings when starting ↵Alex Muntean2010-06-301-0/+1
| | | | | | offset is negative [#4717 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix AS::MB::Chars#+ to not alter self [#4646 state:resolved]James MacAulay2010-06-301-7/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Don't store incorrect values in zones_mapSantiago Pastorino2010-06-282-4/+2
| | | | | | [#4942 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* test that unknown zones don't store mapping keysLeigh Caplan2010-06-281-0/+5
| | | | | | | [#4942] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> Signed-off-by: José Valim <jose.valim@gmail.com>
* Added getbyte as a core_ext to Ruby < 1.9Santiago Pastorino2010-06-271-0/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Oops. Make previous commit pass on 1.9.2.José Valim2010-06-261-1/+2
|
* Tidy up tests in previous commit since they did not assure an OrderedHash is ↵José Valim2010-06-261-3/+2
| | | | | | returned (the test would pass for an array and would pass by chance for hashes). [#4875 state:resolved]
* Add OrderedHash#invert to preserve order in ruby 1.8 [#4875]chaitanyav2010-06-261-0/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Work around the fact the JSON gem was overwriting to_json implementation for ↵José Valim2010-06-261-0/+7
| | | | | | | all Ruby core classes. This is required because the JSON gem is incompatible with Rails behavior and was not allowing ActiveModel::Errors to be serialized. So we need to ensure Rails implementation is the one triggered. [#4890 state:resolved]
* Alias ActiveSupport::OrderedHash#update to ActiveSupport::OrderedHash.merge!Paul Mucur2010-06-251-0/+6
| | | | | | | | This ensures that an OrderedHash's keys are set up appropriately when using update. [#4973 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵José Valim2010-06-241-0/+123
| | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
* renames load_(once_)paths to autoload_(once_)paths in dependencies and configXavier Noria2010-06-241-18/+18
|
* preventing memcached initialization errors with default servers list [#4921 ↵David Calavera2010-06-221-1/+1
| | | | | | | | state:resolved] As of this writing the JRuby client does not support a default port. Signed-off-by: Xavier Noria <fxn@hashref.com>