@@ -39,7 +39,7 @@ class DirectionsTests: XCTestCase {
3939        NSTimeZone . default =  TimeZone ( secondsFromGMT:  0 ) !
4040    } 
4141    override   func  tearDown( )  { 
42-         OHHTTPStubs . removeAllStubs ( ) 
42+         HTTPStubs . removeAllStubs ( ) 
4343        super. tearDown ( ) 
4444    } 
4545
@@ -86,10 +86,10 @@ class DirectionsTests: XCTestCase {
8686    } 
8787
8888    func  testKnownBadResponse( )  { 
89-         OHHTTPStubs . stubRequests ( passingTest:  {  ( request)  ->  Bool  in 
89+         HTTPStubs . stubRequests ( passingTest:  {  ( request)  ->  Bool  in 
9090            return  request. url!. absoluteString. contains ( " https://api.mapbox.com/directions " ) 
91-         } )  {  ( _)  ->  OHHTTPStubsResponse  in 
92-             return  OHHTTPStubsResponse ( data:  BadResponse . data ( using:  . utf8) !,  statusCode:  413 ,  headers:  [ " Content-Type "  :  " text/html " ] ) 
91+         } )  {  ( _)  ->  HTTPStubsResponse  in 
92+             return  HTTPStubsResponse ( data:  BadResponse . data ( using:  . utf8) !,  statusCode:  413 ,  headers:  [ " Content-Type "  :  " text/html " ] ) 
9393        } 
9494        let  expectation  =  self . expectation ( description:  " Async callback " ) 
9595        let  one  =  CLLocation ( coordinate:  CLLocationCoordinate2D ( latitude:  0.0 ,  longitude:  0.0 ) ) 
@@ -112,10 +112,10 @@ class DirectionsTests: XCTestCase {
112112
113113    func  testUnknownBadResponse( )  { 
114114        let  message  =  " Enhance your calm, John Spartan. " 
115-         OHHTTPStubs . stubRequests ( passingTest:  {  ( request)  ->  Bool  in 
115+         HTTPStubs . stubRequests ( passingTest:  {  ( request)  ->  Bool  in 
116116            return  request. url!. absoluteString. contains ( " https://api.mapbox.com/directions " ) 
117-         } )  {  ( _)  ->  OHHTTPStubsResponse  in 
118-             return  OHHTTPStubsResponse ( data:  message. data ( using:  . utf8) !,  statusCode:  420 ,  headers:  [ " Content-Type "  :  " text/plain " ] ) 
117+         } )  {  ( _)  ->  HTTPStubsResponse  in 
118+             return  HTTPStubsResponse ( data:  message. data ( using:  . utf8) !,  statusCode:  420 ,  headers:  [ " Content-Type "  :  " text/plain " ] ) 
119119        } 
120120        let  expectation  =  self . expectation ( description:  " Async callback " ) 
121121        let  one  =  CLLocation ( coordinate:  CLLocationCoordinate2D ( latitude:  0.0 ,  longitude:  0.0 ) ) 
@@ -158,10 +158,10 @@ class DirectionsTests: XCTestCase {
158158    func  testDownNetwork( )  { 
159159        let  notConnected  =  NSError ( domain:  NSURLErrorDomain,  code:  URLError . notConnectedToInternet. rawValue)  as!  URLError 
160160
161-         OHHTTPStubs . stubRequests ( passingTest:  {  ( request)  ->  Bool  in 
161+         HTTPStubs . stubRequests ( passingTest:  {  ( request)  ->  Bool  in 
162162            return  request. url!. absoluteString. contains ( " https://api.mapbox.com/directions " ) 
163-         } )  {  ( _)  ->  OHHTTPStubsResponse  in 
164-             return  OHHTTPStubsResponse ( error:  notConnected) 
163+         } )  {  ( _)  ->  HTTPStubsResponse  in 
164+             return  HTTPStubsResponse ( error:  notConnected) 
165165        } 
166166
167167        let  expectation  =  self . expectation ( description:  " Async callback " ) 
0 commit comments