aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* implements weeks_ago and prev_week for Date/DateTime/Time [#5122 ↵Rob Zolkos & Xavier Noria2010-10-163-0/+50
| | | | state:committed]
* Override #store to be consistent with #[].Andrea Campi2010-10-101-0/+10
| | | | | | [#5775 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* calling correct method on minitest for test name when teardown callback failsAaron Patterson2010-10-041-0/+19
|
* [#5406 state:resolved] calling the correct method on minitest to obtain the ↵Aaron Patterson2010-10-041-0/+38
| | | | test name
* removing AS::Testing::Default in favor of just undefing default_testAaron Patterson2010-10-011-7/+0
|
* let Hash#to_param and Hash#to_query sort againXavier Noria2010-09-281-3/+7
| | | | | This was a regression introduced in 5c858220085dc4ddc1bec496747059dfbe32f1da. We bring sorting back because people rely on it, eg for constructing consistent cache keys.
* Test for after_create callback order in ActiveSupport [#5703 state:resolved]Neeraj Singh2010-09-271-0/+23
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Call it compile_methods! and do the same on AM.José Valim2010-09-271-1/+1
|
* Make assert_valid_keys slightly faster.thedarkone2010-09-271-1/+1
|
* Compile ActionController::Base.config's methods to avoid method_missing ↵thedarkone2010-09-271-0/+18
| | | | overhead.
* memoized protected methods should remain protectedAndrew Kaspick2010-09-241-0/+14
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* attr_accessor_with_default should raise an ArgumentError not a RuntimeErrorAaron Patterson2010-09-241-1/+1
|
* Exception handling more readableThiago Pradi2010-09-192-4/+4
| | | | | | [#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Use `Time.current` to maintain consistency with AS::DurationPrem Sichanugrist2010-09-191-0/+38
| | | | | | | | | | In [32b82e4c6f5523cdf5ee78c3022c50b46e018351], the committer has switch methods in AS::Duration to use `Time.current` to return the correct duration based on the `Time.default_zone` instead of using `Time.now`. [#5607 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Move capture to Kernel. [#5641 state:resolved]Krekoten' Marjan2010-09-181-0/+5
|
* fixed some issues with JSON encodingJakub Suder2010-09-071-1/+64
| | | | | | | | | | | - as_json in ActiveModel should return a hash and handle :only/:except/:methods options - Array and Hash should call as_json on their elements - json methods should not modify options argument [#5374 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add before_remove_const callback to ↵Andrew White2010-09-011-0/+11
| | | | | | ActiveSupport::Dependencies.remove_unloadable_constants! Signed-off-by: Xavier Noria <fxn@hashref.com>
* delegate method should treat :prefix => false same as :prefix => nilNeeraj Singh2010-09-011-0/+13
| | | | | | [#5375 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Make ActiveSupport::Duration#method_missing delegate blocks to value [#5498 ↵Krekoten' Marjan2010-09-011-0/+8
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* If certain sections of skip_callback method are commented out thenNeeraj Singh2010-08-311-0/+27
| | | | | | | no test was failing. Tests have been added to ensure that commenting out the code within if loop would cause test failure. Signed-off-by: José Valim <jose.valim@gmail.com>
* let String#strip_heredoc handle blank lines even if they are not indentedXavier Noria2010-08-301-0/+9
|
* implements String#strip_heredocXavier Noria2010-08-291-0/+23
|
* Silence warnings for Encoding.default_external= and Encoding.default_internal=Santiago Pastorino2010-08-221-3/+6
|
* Set default_internal and default_external on AS for testing purposesSantiago Pastorino2010-08-221-0/+8
|
* Trifling typosRaphomet2010-08-211-2/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Sadly, this segv's in 1.8 :(wycats2010-08-171-5/+5
|
* to_sentence should return a duplicateMatthew Mongeau2010-08-171-0/+5
|
* Class Attribute setter returns set valuePeter Wagenet2010-08-161-0/+5
| | | | Signed-off-by: wycats <wycats@gmail.com>
* 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>