Sha256: f3d4e6f3dea58cf4ea6e547a4a846a6266cf8170cf1f288d74e67c8fa2fd991d

Contents?: true

Size: 557 Bytes

Versions: 4

Compression:

Stored size: 557 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

4 entries across 4 versions & 1 rubygems

Version Path
minke-generator-swift-0.5 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb
minke-generator-swift-0.4 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb
minke-generator-swift-0.2.2 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb
minke-generator-swift-0.2.1 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb