Stopped overriding the ping method provided by the 1.0 API, but it didn't match the "castExists" regex so...

Fixed the lack of castExists for ping/1.0 by removing castExists all together from the API. It was the
case anyway that all HEAD requests needed to be cast, so now the clientAction module will set that
param when the spec is set to make HEAD requests. The transport.request still expects that parameter.

Switched the apiVersion implementation to use funcEnum, and exposed the options on the Client constructor.
Docs to come.
This commit is contained in:
Spencer Alger
2014-01-16 15:43:33 -07:00
parent eda56aa5d0
commit b36a6590e8
7 changed files with 143 additions and 47 deletions

View File

@ -559,9 +559,9 @@ describe('Client Action runner', function () {
});
});
it('passes castExists', function (done) {
it('sets castExists when the method in the spec is HEAD', function (done) {
var action = makeClientAction({
castExists: true
method: 'HEAD'
});
action({}, function (err, params) {