aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Merged pull request #219 from panthomakos/memcache.José Valim2011-04-281-0/+38
|\ | | | | Character encoding issues with MemCacheStore in 1.9.2
| * Fixed special character encoding issue with MemCacheStore in Ruby 1.9.2.Pan Thomakos2011-03-111-0/+38
| |
* | Merged pull request #328 from MSNexploder/fix_clear_inflector.José Valim2011-04-281-12/+30
|\ \ | | | | | | proper reset all inflector scopes
| * | proper reset all inflector scopesStefan Huber2011-04-251-12/+30
| | |
* | | fixing Array#from to return consistent resultsJared McFarland2011-04-261-1/+1
|/ /
* | File watcher won't make the cut for 3.1. Maybe on 3.2.José Valim2011-04-231-233/+0
| |
* | AS Json parse_error makes a return for backwards compatibility, although it ↵Josh Kalderimis2011-04-191-1/+1
| | | | | | | | will return MultiJson::DecodeError
* | removed AS backends and instead rely on MultiJson for json decodingJosh Kalderimis2011-04-181-7/+4
| |
* | Add String#inquiry as a convenience method for turning a string into a ↵David Heinemeier Hansson2011-04-181-0/+5
| | | | | | | | StringInquirer object [DHH]
* | Only rescue a thrown NoMethodError, don't preemptively check for #include?; ↵Jared McFarland2011-04-151-0/+4
| | | | | | | | added tests
* | attributes no longer disappear if a tag contains whitespaceAndre Arko2011-04-141-0/+9
| | | | | | | | | | | | | | | | | | | | old: Hash.from_xml("<tag foo='bar'>\n</tag>") => {"tag"=>"\n"} new: Hash.from_xml("<tag foo='bar'>\n</tag>") => {"tag"=>{"foo"=>"bar", "__content__"=>"\n"}
* | Add tests for InheritableOptions.Ben Orenstein2011-04-131-0/+26
| | | | | | | | | | | | [#6625 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Remove `#among?` from Active SupportPrem Sichanugrist2011-04-132-7/+1
| | | | | | | | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
* | Update test name to the corresponding method nameSebastian Martinez2011-04-121-1/+1
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-122-4/+4
| | | | | | | | suggestion!
* | Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-1/+2
| | | | | | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* | Add support for Object#in? and Object#either? in Active Support [#6321 ↵Prem Sichanugrist, Brian Morearty, John Reitano2011-04-111-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | state:committed] This will allow you to check if an object is included in another object or the list of objects or not. This patch is derived from patch by Brian Morearty and John Reitano on Lighthouse ticket. I've rewrite it and make sure that we support both 'another object' and 'list of objects' version, as it surely be useful to support both.
* | added find_zone and find_zone! to AS timezones and changed the AS Railtie to ↵Josh Kalderimis2011-04-051-0/+18
| | | | | | | | | | | | use find_zone! as well as adding Railtie tests Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Raise on invalid timezoneMarc-Andre Lafortune2011-04-051-5/+26
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | parse dates to yaml in json arraysDiego Carrion2011-03-221-0/+2
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | test json decoding with time parsing disabled with all backends and respect ↵Diego Carrion2011-03-221-4/+2
| | | | | | | | | | | | ActiveSupport.parse_json_times when converting to yaml Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Prevent callbacks in child classes from being executed more than once.Rolf Timmermans2011-03-131-0/+30
|/
* Add better test scenario for around callback return resultsAaron Pfeifer2011-03-081-0/+10
|
* Allow access to a callback event's return result from around callbacksAaron Pfeifer2011-03-081-0/+24
|
* removing stubs. 1.9.3 implements Date.today in C so mocking the return value ↵Aaron Patterson2011-03-071-9/+4
| | | | of Time.now does nothing
* do not test explicit equality of predicate methods, they should be allowed ↵Aaron Patterson2011-03-071-3/+3
| | | | to return truthy or falsey objects
* Report the correct value of nil.id in the exception messageAndrew White2011-03-061-0/+2
| | | | | | | as different ruby implementations may have different values, for example Rubinius returns 53 for nil.id. [#6444 state:resolved]
* reverted tests deleted by 080345baca1076a9788d, refactored implementations ↵Diego Carrion2011-03-041-3/+13
| | | | | | should not invalidate the validations Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* adding deprecation noticies to deprecated class cache methodsAaron Patterson2011-03-022-7/+28
|
* adding backwards compat for class cache references. <3<3Aaron Patterson2011-03-022-7/+13
|
* refactor Reference to a ClassCache object, fix lazy lookup in Middleware so ↵Aaron Patterson2011-03-012-3/+84
| | | | that anonymous classes are supported
* fixing test case test on 1.9.3devAaron Patterson2011-03-011-0/+4
|
* Remove warnings about redefined test methodsSam Elliott2011-03-011-4/+4
| | | | | | [#6490 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* updated Time, Date and DateTime current methods in AS to use Time.zone and ↵Josh Kalderimis2011-02-285-37/+38
| | | | | | not Time.zone_default. [#6410 state:committed]
* Make ActiveSupport::Configurable work with modulesOriol Gual and Josep M. Bach2011-02-281-1/+7
| | | | | | [#6486 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fix tests on 1.8.José Valim2011-02-222-27/+8
|
* Allow tests to proceed as soon as the payload changes, instead of always ↵wycats2011-02-201-15/+37
| | | | having to wait for a timeout
* Add tests for an FSSM backend for the file system watcher using the FSSM ↵wycats2011-02-201-0/+153
| | | | polling support.
* added Range#count? for Ruby 1.8Diego Carrion2011-02-191-0/+12
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* WeakHash is not used, remove it.Emilio Tagua2011-02-181-33/+0
|
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-183-4/+8
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association.rb activerecord/lib/active_record/fixtures.rb
| * Remove unused line in test setup.Ben Orenstein2011-02-171-1/+0
| | | | | | | | | | | | [#6442 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * handle double pluralization for irregular pluralsDan Pickett2011-02-162-0/+8
| | | | | | | | | | | | [#6363] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Remove unused code.Ben Orenstein2011-02-161-3/+0
| | | | | | | | | | | | [#6437 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-1520-94/+373
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * Add Date#rfc3339 and Date#iso8601 to ASSantiago Pastorino2011-02-131-0/+10
| |
| * Updated the json date regex to recognize xmlschema formatted date times ↵Josh Kalderimis2011-02-121-0/+4
| | | | | | | | | | | | during json decoding. [#3031 state:resolved] Signed-off-by: Santiago Pastorino and Emilio Tagua <santiago+emilioe@wyeworks.com>
| * Fixes an issue when decoding a json string which looks like a date but is ↵Josh Kalderimis2011-02-111-0/+2
| | | | | | | | | | | | invalid. This DateTime parse error is now caught and the original string is instead passed back [#6286 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Removed Array#safe_join in AS core_ext and moved it to a view helper with ↵Josh Kalderimis2011-02-101-44/+0
| | | | | | | | | | | | the same same. This also changes how safe_join works, if items or the separator are not html_safe they are html_escape'd, a html_safe string is always returned. Signed-off-by: José Valim <jose.valim@gmail.com>
| * Revert "Removed Array#safe_join in AS core_ext and moved it to a view helper ↵José Valim2011-02-101-0/+44
| | | | | | | | | | | | | | | | with the same same." Applied the wrong version. This reverts commit 98c0c5db50a7679b3d58769ac22cb0a27a62c930.