Add a test

This commit is contained in:
Santi Albo
2014-01-28 17:15:15 +00:00
parent aa19aca412
commit 8d7e7127d7
+7
View File
@@ -136,3 +136,10 @@ function test_config() {
});
});
}
function test_withHttpConfig() {
var $scope;
Restangular.one('accounts', 123).withHttpConfig({timeout: 100}).getList('buildings');
$scope.account = Restangular.one('accounts', 123);
$scope.account.withHttpConfig({timeout: 100}).put();
}