Sha256: 7ec604e2df973d956e8cd907a0ca0f72f560687ee121c10ee4661d424c6c639a
Contents?: true
Size: 555 Bytes
Versions: 6
Compression:
Stored size: 555 Bytes
Contents
import Foundation import XCTest import SwiftyJSON @testable import <%= application_name %> public class HealthHandlerResponseTests: XCTestCase { public func testSerializesObject() { let h = HealthHandlerResponse(statusMessage: "MyMessage") let json = h.serialize() XCTAssertEqual("MyMessage", json["status_message"] as? String) } } extension HealthHandlerResponseTests { static var allTests: [(String, HealthHandlerResponseTests -> () throws -> Void)] { return [ ("testSerializesObject", testSerializesObject) ] } }
Version data entries
6 entries across 6 versions & 1 rubygems