aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Object#in? also accepts multiple parameters"Brian Morearty2013-05-011-10/+0
| | | | | | | | | | | | | | | | | | This reverts commit ebf69ab1636df74c76332c53bcd3d8494fb91b45. `in?` must not take multiple parameters because its behavior would be ambiguous: # Test if "B" is included in a list of names with `"B".in?(*names)`: names = ["BMorearty"] "B".in?(*names) # => true names = ["BMorearty","rubyduo"] "B".in?(*names) # => false Conflicts: activesupport/lib/active_support/core_ext/object/inclusion.rb activesupport/test/core_ext/object/inclusion_test.rb
* remove unused parameter passed to assert_query_equal methodVipul A M2013-03-171-1/+1
|
* Remove .rb from require sentencesJosé Corcuera Z2012-09-211-1/+1
|
* remove usages of AS::OrderedHashVishnu Atrai2012-03-031-2/+2
|
* use AS::TestCase as the base classAaron Patterson2012-01-053-3/+3
|
* Object#in? also accepts multiple parametersTadas Tamošauskas2011-11-261-0/+10
|
* Fix Hash#to_query edge case with html_safe string on 1.8 rubybrainopia2011-09-161-0/+9
|
* Revert all the stuff to do with disallowing non-public methods for ↵Jon Leighton2011-08-251-117/+0
| | | | Module#delegate
* 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
* Only rescue a thrown NoMethodError, don't preemptively check for #include?; ↵Jared McFarland2011-04-151-0/+4
| | | | added tests
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-6/+0
| | | | | | 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-121-3/+3
| | | | suggestion!
* 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.
* Revert "Quick fix for not escaping []s (not ideal)"Santiago Pastorino2010-11-181-4/+4
| | | | | | | | | According to http://www.ietf.org/rfc/rfc2616.txt and http://tools.ietf.org/rfc/rfc3986.txt [ and ] are reserved characters and should be escaped using "%" HEX HEX This reverts commit 856d2fd874d72dd9f83204affff4edfef3308361 and 1ee9b40b18a0bed5bb10a0785f7e2730bac983f6..
* These tests are trusting in the order of the elements so use OrderedHash ↵Santiago Pastorino2010-07-211-2/+3
| | | | instead of Hash
* Failing tests for to_param/to_query not escaping "[]"Joshua Peek2009-12-021-4/+4
|
* Consolidate Object#to_param and #to_query core extensionsJeremy Kemper2009-11-022-0/+62