@@ -1725,7 +1725,7 @@ describe('handling rejections', function() {
1725
1725
1726
1726
it ( 'should not swallow exceptions in success callback when error callback is provided' ,
1727
1727
function ( ) {
1728
- $httpBackend . expect ( 'GET' , '/CreditCard/123' ) . respond ( null ) ;
1728
+ $httpBackend . expectGET ( '/CreditCard/123' ) . respond ( null ) ;
1729
1729
var CreditCard = $resource ( '/CreditCard/:id' ) ;
1730
1730
var cc = CreditCard . get ( { id : 123 } ,
1731
1731
function ( res ) { throw new Error ( 'should be caught' ) ; } ,
@@ -1740,7 +1740,7 @@ describe('handling rejections', function() {
1740
1740
1741
1741
it ( 'should not swallow exceptions in success callback when error callback is not provided' ,
1742
1742
function ( ) {
1743
- $httpBackend . expect ( 'GET' , '/CreditCard/123' ) . respond ( null ) ;
1743
+ $httpBackend . expectGET ( '/CreditCard/123' ) . respond ( null ) ;
1744
1744
var CreditCard = $resource ( '/CreditCard/:id' ) ;
1745
1745
var cc = CreditCard . get ( { id : 123 } ,
1746
1746
function ( res ) { throw new Error ( 'should be caught' ) ; } ) ;
@@ -1754,8 +1754,8 @@ describe('handling rejections', function() {
1754
1754
1755
1755
it ( 'should not swallow exceptions in success callback when error callback is provided and has responseError interceptor' ,
1756
1756
function ( ) {
1757
- $httpBackend . expect ( 'GET' , '/CreditCard/123' ) . respond ( null ) ;
1758
- var CreditCard = $resource ( '/CreditCard/:id: ' , null , {
1757
+ $httpBackend . expectGET ( '/CreditCard/123' ) . respond ( null ) ;
1758
+ var CreditCard = $resource ( '/CreditCard/:id' , null , {
1759
1759
get : {
1760
1760
method : 'GET' ,
1761
1761
interceptor : { responseError : function ( ) { } }
@@ -1775,7 +1775,7 @@ describe('handling rejections', function() {
1775
1775
1776
1776
it ( 'should not swallow exceptions in success callback when error callback is not provided and has responseError interceptor' ,
1777
1777
function ( ) {
1778
- $httpBackend . expect ( 'GET' , '/CreditCard/123' ) . respond ( null ) ;
1778
+ $httpBackend . expectGET ( '/CreditCard/123' ) . respond ( null ) ;
1779
1779
var CreditCard = $resource ( '/CreditCard/:id' , null , {
1780
1780
get : {
1781
1781
method : 'GET' ,
0 commit comments