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

Version Path
minke-generator-swift-0.2.0 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb
minke-generator-swift-0.1.8 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb
minke-generator-swift-0.1.7 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb
minke-generator-swift-0.1.6 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb
minke-generator-swift-0.1.4 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb
minke-generator-swift-0.1.0 lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb