Merge pull request #181 from strongloop/feature/add-new-disableMethod-api

Use new api for disabling a remote method.
This commit is contained in:
Richard Pringle 2016-09-26 11:00:26 -04:00 committed by GitHub
commit 72a754b099
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ describe('explorer', function() {
expect(paths).to.contain('/products/findOne');
var Product = app.models.Product;
Product.disableRemoteMethod('findOne', true);
Product.disableRemoteMethodByName('findOne');
// Request swagger.json again
request(app)