aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object/to_query_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Add three new rubocop rulesRafael Mendonça França2016-08-161-4/+4
| | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* remove redundant curlies from hash argumentsXavier Noria2016-08-061-5/+5
|
* modernizes hash syntax in activesupportXavier Noria2016-08-061-5/+5
|
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-27/+27
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Merge pull request #15629 from akshay-vishnoi/test-to_paramRafael Mendonça França2014-07-281-0/+10
|\ | | | | Define Hash#to_query and set Hash#to_param as alias to it; with test cases
| * Move to_param to to_query, also Improve testsAkshay Vishnoi2014-06-201-0/+10
| |
* | missing activesupport test coverageEugene Gilburg2014-07-191-0/+4
|/
* [Fixes #14948] Hash#to_query: Changed a way how empty hash and empty array ↵Bogdan Gusiev2014-05-031-3/+5
| | | | | | | | | | | are serialized Empty Hash or Array should not present in serialization result {a: []}.to_query # => "" {a: {}}.to_query # => "" For more info see #14948.
* Fix to_query with empty arrays tooRafael Mendonça França2014-02-061-0/+2
|
* Refatoring the method to avoid shot-circuit returnRafael Mendonça França2014-02-051-0/+2
|
* Test with a blank valueRafael Mendonça França2014-02-051-2/+2
|
* Move test to the right fileRafael Mendonça França2014-02-051-0/+9
|
* 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-051-1/+1
|
* Fix Hash#to_query edge case with html_safe string on 1.8 rubybrainopia2011-09-161-0/+9
|
* 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-021-0/+43