 import XCTest
 @testable import VimeoNetworking
 
+let TestVimeoBaseURL = URL(string: "https://api.vimeo.com")!
+
 class VimeoSessionManagerTests: XCTestCase
 {
     func test_VimeoSessionManager_defaultBaseUrl()

                                             apiVersion: "3.3")
        
        let sessionManager = VimeoSessionManager.defaultSessionManager(appConfiguration: configuration)
        XCTAssertEqual(sessionManager.baseURL, VimeoBaseURL)
    }
    
    func test_VimeoSessionManager_canSetBaseUrl()

        let sessionManager = VimeoSessionManager.defaultSessionManager(appConfiguration: configuration)
        
        let testPath = "/test/api/endpoint"
        let testUrl = TestVimeoBaseURL.appendingPathComponent(testPath)
        
        var task = sessionManager.get(testPath, parameters: nil, progress: nil, success: nil, failure: nil)
        XCTAssertEqual(task?.currentRequest?.url, testUrl)
