Skip to content

Commit e65c1b7

Browse files
madflowFlorian Reiss
authored and
Florian Reiss
committed
First test for mgonto#1068
1 parent 180d280 commit e65c1b7

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
@@ -709,6 +709,15 @@ describe("Restangular", function() {
709709
$httpBackend.expectGET('/accounts/do-something');
710710
$httpBackend.flush();
711711
});
712+
713+
it("should provide a one-off $http configuration method", function() {
714+
var Accounts = Restangular.service('accounts');
715+
Accounts.withHttpConfig({transformRequest: angular.identity});
716+
Accounts.post(newAccount);
717+
$httpBackend.expectPOST('/accounts');
718+
$httpBackend.flush();
719+
});
720+
712721
});
713722

714723
describe("ONE", function() {

0 commit comments

Comments
 (0)