aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* defines Module#qualified_const_(defined?|get|set) and String#deconstantizeXavier Noria2011-10-292-0/+98
| | | | | | | | | | This commit also implements a faster version of #demodulize I was unable to isolate with git add --patch. Not a big fan of the name #deconstantize. It complements #demodulize getting rid of the rightmost constant, hence the name, but it is unrelated to the well-known #constantize. So unsure. Could not come with anything better, please feel free to rename.
* Merge pull request #3151 from zenprogrammer/pluralize_without_countJosé Valim2011-10-171-4/+8
|\ | | | | Added include_count parameter to pluralize.
| * Modified String#pluralize to take an optional count parameter.Ryan Oblak2011-09-281-4/+8
| |
* | Fixed test_nonexisting_method_with_arguments to revert commit 29a5aeaYasuo Honda2011-10-061-1/+1
| |
* | Revert "don't raise NoMethodError the tried method doesn't exists"José Valim2011-10-061-1/+1
| | | | | | | | This reverts commit 29a5aeaae976bf8432d57ec996c7c81932a39de6.
* | Merge pull request #2801 from jeremyevans/patch-1Jeremy Kemper2011-10-031-0/+3
|\ \ | |/ |/| Fix obviously breakage of Time.=== for Time subclasses
| * Add tests for fixes to Time.===Jeremy Evans2011-09-071-0/+3
| |
* | Added ActiveSupport::Inflector.safe_constantize and String#safe_constantize; ↵Ryan Oblak2011-09-231-1/+22
| | | | | | | | refactored common constantize tests into ConstantizeTestCases
* | Fix test to reflect use of to_param for keysbrainopia2011-09-181-8/+8
| |
* | Fix Hash#to_query edge case with html_safe string on 1.8 rubybrainopia2011-09-161-0/+9
| |
* | We can't simply check the first line of the backtrace, Arun Agrawal2011-09-041-4/+6
|/ | | because JRuby reports the call to __send__ in the backtrace.
* Revert all the stuff to do with disallowing non-public methods for ↵Jon Leighton2011-08-252-136/+1
| | | | Module#delegate
* Remove trailing whitespaceDaniel Schierbeck2011-08-231-2/+2
|
* properly escape html to avoid invalid utf8 causing XSS attacksAaron Patterson2011-08-161-0/+7
|
* Added Array#prepend as an alias for Array#unshift and Array#append as an ↵David Heinemeier Hansson2011-08-151-0/+10
| | | | alias for Array#<< [DHH]
* Add a test for delegating a method ending in '=' as this is a special case.Jon Leighton2011-08-151-0/+8
|
* Split up the definitions in Module#delegate depending on :allow_nil, and ↵Jon Leighton2011-08-151-0/+12
| | | | don't use exceptions for flow control in the :allow_nil => true case.
* Fix the line number in the backtrace when Module#delegate raisesJon Leighton2011-08-151-1/+13
|
* Just do the method call directly in Module#delegate, if we can (we cannot ↵Jon Leighton2011-08-151-2/+20
| | | | for method names ending in '='). Two reasons: 1) it's faster, see https://gist.github.com/1089783 and 2) more importantly, delegate should not allow you to accidentally call private or protected methods.
* Backport Object#public_send to 1.8 so that we can implement Module#delegate ↵Jon Leighton2011-08-151-0/+117
| | | | such that non-public methods raise
* backporting IO#binread for 1.8 usersAaron Patterson2011-08-081-0/+23
|
* Removing extra requires from the test. Already loaded in abstract_unit.Arun Agrawal2011-07-311-1/+0
|
* Duplicable test is looking fine now.Mitesh Jain2011-07-241-7/+12
|
* Insure that Enumerable#index_by, group_by, ... return EnumeratorsMarc-Andre Lafortune2011-07-231-1/+12
|
* Make Enumerable#many? iterate only over what is necessaryMarc-Andre Lafortune2011-07-231-0/+7
|
* Make Enumerable#many? not rely on #sizeMarc-Andre Lafortune2011-07-231-1/+1
|
* Test using generic Enumerables instead of arrays.Marc-Andre Lafortune2011-07-231-24/+38
|
* Make tests more preciseMarc-Andre Lafortune2011-07-231-14/+14
|
* Changed the year of a date used in a test which fails when using 1.8.7 on a ↵Josh Kalderimis2011-07-191-1/+1
| | | | 32bit machine (ArgumentError: time out of range)
* need magic commentsAkira Matsuda2011-07-141-0/+2
|
* treat fullwidth whitespace as a blank characterAkira Matsuda2011-07-141-1/+1
|
* Fix xmlschema output with fraction_digits >0shtirlic2011-07-111-0/+7
| | | | | Current implementation produce incorrect output when Time#usec returns integer < 100000, because to_s doesn't add leading zeros.
* Merge pull request #1296 from c42engineering/issue636José Valim2011-07-111-0/+49
|\ | | | | Resubmitting issue #636 as a pull request
| * Issue #636 - Parsing an xml file with multiple records and extra attributes ↵Sidu Ponnappa2011-07-111-0/+49
| | | | | | | | (besides type) fails
* | Merge pull request #1463 from psanford/masterSantiago Pastorino2011-07-061-0/+1
|\ \ | | | | | | Fix timezone handling in String.to_time
| * | Make String.to_time respect timezonesNate Mueller2011-06-021-0/+1
| | |
* | | all numerics should be html_safe - Closes #1935Damien Mathieu2011-07-031-0/+4
| | |
* | | Merge pull request #1690 from vijaydev/mattr_accessor_changesJosé Valim2011-06-301-0/+7
|\ \ \ | | | | | | | | Added instance_accessor: false to Module#mattr_accessor
| * | | Added instance_accessor: false to Module#mattr_accessorVijay Dev2011-06-141-0/+7
| | | |
* | | | Array.wrap should follow Kernel#Array semantics when the object's to_ary is ↵Jon Leighton2011-06-301-2/+3
| | | | | | | | | | | | | | | | nil. In this case, the object should be wrapped.
* | | | Add option to omit creating an instance reader method on class_attributeJames Miller2011-06-181-0/+6
|/ / /
* | | Rename Time#whole_* to Time#all_* [thanks Pratik!]David Heinemeier Hansson2011-06-131-10/+10
| | |
* | | Added Time#whole_day/week/quarter/year as a way of generating ranges ↵David Heinemeier Hansson2011-06-131-0/+20
| | | | | | | | | | | | (example: Event.where(created_at: Time.now.whole_week)) [DHH]
* | | Added instance_accessor: false as an option to Class#cattr_accessor and ↵David Heinemeier Hansson2011-06-131-2/+9
| | | | | | | | | | | | friends [DHH]
* | | Define ActiveSupport#to_param as to_str - closes #1663Andrew White2011-06-121-1/+7
| | |
* | | Allow a Date to be frozen more than once without an error in Ruby 1.8.xBradley Buda2011-06-081-0/+6
|/ /
* / Removed deprecated methods and related tests from ActiveSupportJosh Kalderimis2011-05-252-269/+0
|/
* Removed the AS core_ext/kernel/debugger breakpoint method as this method is ↵Josh Kalderimis2011-05-231-3/+43
| | | | added by ruby-debug and should be left as is. Missing tests added.
* make sure missing method does not fail with argumentsdmathieu2011-05-221-0/+6
|
* don't raise NoMethodError the tried method doesn't existsdmathieu2011-05-211-1/+1
|