Skip to content

Commit 0270e02

Browse files
committed
First test for mgonto#1068
1 parent 19e6f95 commit 0270e02

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: test/restangularSpec.js

+9
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,15 @@ describe("Restangular", function() {
692692
$httpBackend.expectGET('/accounts/do-something');
693693
$httpBackend.flush();
694694
});
695+
696+
it("should provide a one-off $http configuration method", function() {
697+
var Accounts = Restangular.service('accounts');
698+
Accounts.withHttpConfig({transformRequest: angular.identity});
699+
Accounts.post(newAccount);
700+
$httpBackend.expectPOST('/accounts');
701+
$httpBackend.flush();
702+
});
703+
695704
});
696705

697706
describe("ONE", function() {

0 commit comments

Comments
 (0)