Skip to content

Commit

Permalink
Fix Swift 3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Oct 23, 2016
1 parent c3fe566 commit e3cd017
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions OHHTTPStubs/UnitTests/Test Suites/SwiftHelpersTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,14 @@ class SwiftHelpersTests : XCTestCase {
}
}

#if swift(>=3.0)
func test_ohhttpStubs_httpBody {
#if swift(>=3.0)
#if OHHTTPSTUBS_NSURLSESSION_HTTPBODY
func test_ohhttpStubs_httpBody() {
var req = URLRequest(url: URL(string: "foo://bar")!)
req.httpBody = Data()

XCTAssert(req.ohhttpStubs_httpBody == req.httpBody)
}
#endif
#endif
#endif
}

0 comments on commit e3cd017

Please sign in to comment.