aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test
Commit message (Collapse)AuthorAgeFilesLines
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-222-6/+10
| | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* Remove double test for header inheritance leaksMark McSpadden2012-02-141-11/+0
|
* Allow ActiveResource subclasses to inherit headers from parentMark McSpadden2012-02-131-0/+46
|
* replaced active support ordered hash to ruby hash on active resourceprasath2012-02-091-3/+1
|
* add handling for backwards-compatibility and update documentationMatt Jones2012-02-041-0/+30
|
* Merge remote-tracking branch 'odorcicd/fix_activeresource_json_errors' into ↵Matt Jones2012-02-041-2/+2
|\ | | | | | | compatible_json_errors
| * Fix ActiveResource JSON error parser and incorrect testsDenis Odorcic2011-09-161-2/+2
| |
* | Replaced all 'for' loops with Enumerable#eachNathan Broadbent2012-01-301-3/+3
| |
* | Clean up http configJeremy Kemper2012-01-221-1/+0
| |
* | Prefer to document with https:// example URLs and no port numbersJeremy Kemper2012-01-221-1/+1
| |
* | Split Basic and Digest authorization testsJeremy Kemper2012-01-211-82/+79
| |
* | require minitest rather than test/unitAaron Patterson2012-01-061-1/+1
| |
* | activeresource tests use AS::TestCaseAaron Patterson2012-01-0510-10/+10
| |
* | Moved all the logger methods to active support loggerKarunakar (Ruby)2012-01-061-3/+2
| | | | | | | | minor
* | remove ActiveSupport::Base64 in favor of ::Base64Sergey Nartimov2012-01-021-8/+8
| |
* | Treat 303 See Other as a redirect response, tooJeremy Kemper2011-10-111-3/+13
| |
* | activeresource should treat HTTP status 307 as redirection, same as 301 and ↵Jim Herzberg2011-10-111-0/+9
| | | | | | | | 302; added missing test cases for statii 301 and 302.
* | Fixed digest authentication for requests with a query string [#3158]Colin Shield & Ian Lesperance2011-09-281-0/+6
| |
* | Make serializable_hash take attr values directly from attributes hash.Jon Leighton2011-09-261-3/+11
|/ | | | | | | | | | | | Previously, it would use send() to get the attribute. In Active Resource, this would rely on hitting method missing. If a method with the same name was defined further up the ancestor chain, that method would wrongly be called. This change fixes test_to_xml_with_private_method_name_as_attribute in activeresource/test/cases/base_test.rb, which was broken after 51bef9d8fb0b4da7a104425ab8545e9331387743, because that change made to_xml use serializable_hash.
* Merge pull request #2678 from jmileham/ares_content_length_bugJon Leighton2011-09-121-3/+27
|\ | | | | ActiveResource shouldn't rely on the presence of Content-Length
| * Failing test: ActiveResource shouldn't rely on the presence of Content-LengthJohn Mileham2011-09-091-3/+27
| |
* | Not used variables removed. Warnings removed.Arun Agrawal2011-09-101-2/+2
| |
* | Do not use objects that don't respond to to_sym (integers, floats, dates...) ↵Marc G Gauthier2011-09-011-0/+19
|/ | | | as parameters
* fix some types in schema_test.rbLachlan Sylvester2011-07-271-5/+5
|
* remove warning: assigned but unused variableSantiago Pastorino2011-06-084-4/+3
|
* Not loading ruby-debug specially. Arun Agrawal2011-05-221-5/+0
|
* No more need rubygems here.Arun Agrawal2011-05-221-1/+0
|
* corrected some further tests and docs for the ARes change to json changeJosh Kalderimis2011-05-184-39/+39
|
* updated all the tests in ARes to work with jsonJosh Kalderimis2011-05-1812-263/+298
|
* move the ARes conn test to the correct locationJosh Kalderimis2011-05-181-5/+5
|
* remove a circular dependencyJosh Kalderimis2011-05-181-2/+0
|
* Follow code conventions on some testsSebastian Martinez2011-05-101-1/+1
|
* Fixed minor typo in commentPaolo "Nusco" Perrotta2011-04-261-1/+1
|
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-1/+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?`.
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-121-1/+1
| | | | 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?.
* Active Resource typos.R.T. Lechow2011-03-054-4/+4
|
* ActiveResource validation tests did not test ActiveModel validations. Adjust ↵Ken Mazaika2011-02-152-13/+12
| | | | | | the test to be done the Rails3 way. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fixed a bug where ActiveResource::HttpMock would not replace an existing ↵Josh Bassett2011-02-091-2/+25
| | | | | | response when passing a block to the respond_to method. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Make ARes tests unescape [ and ]Santiago Pastorino2010-11-181-3/+3
|
* - ActiveResource::HttpMock.respond_toGaston Ramos2010-10-071-1/+14
| | | | | | | do not replace the response with the same path but different method - Fix typo Signed-off-by: José Valim <jose.valim@gmail.com>
* - Fix ActiveResource::HttpMock.respond_to replace the responseGaston Ramos2010-10-071-4/+19
| | | | | | if it has the same request Signed-off-by: José Valim <jose.valim@gmail.com>
* changing map and include to findAaron Patterson2010-09-301-1/+1
|
* assert on empty array is always true. fixing test.Neeraj Singh2010-09-301-1/+1
|
* Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 ↵Matthijs Langenberg2010-09-273-1/+16
| | | | | | | | | | | | | | | | | | | | | | | state:resolved] Following namespace use case was broken with Ruby 1.9: class Author < ActiveRecord::Base ... end module Api class Book < ActiveResouce::Base end end Let's say XML contains <book><author><name>John</name></author>.... Api::Book.first.author.class.to_s #=> Ruby 1.8.7: "Api::Book::Author" (namespaced, correct), Ruby 1.9: "Author" (toplevel, broken) Signed-off-by: José Valim <jose.valim@gmail.com>
* - added mock to test ActiveResource::MissingPrefixParam in finder_testGaston Ramos2010-09-271-0/+1
|
* - check prefix options in collection_pathGaston Ramos2010-09-271-1/+7
|
* - better name for prefix param test caseGaston Ramos2010-09-271-1/+1
|
* - elmenth_path raise an ActiveResource::MissingPrefixParam exception when ↵Gaston Ramos2010-09-272-1/+9
| | | | | | | prefix_options does not has all required prefix_options ex: class StreetAddress < ActiveResource::Base self.site = "http://37s.sunrise.i:3000/people/:person_id/" end StreetAddress.element_path(1) # => ActiveResource::MissingPrefixParam
* Fix active_resource assertions.José Valim2010-09-251-2/+2
|