 
             context("with a no chance of precipitation") {
                 it("stores the precipitation probability and defaults the type") {
-                    let conditions = weatherConditions(precipitationProbability: "0", precipitationType: nil)
+                    let conditions = weatherConditions(precipitationProbability: 0, precipitationType: nil)
                     let update = WeatherUpdate(
                         placemark: testPlacemark,
                         currentConditionsJSON: conditions,


private func weatherConditions(
    _ temperature: Int = 90,
    precipitationProbability: String? = nil,
    precipitationType: String? = "rain"
) -> [String: Any] {
    var data: [String: Any] = [


            context("with a chance of precipitation") {
                it("stores the precipitation probability and type") {
                    let conditions = weatherConditions(precipitationProbability: 0.43)
                    let update = WeatherUpdate(
                        placemark: testPlacemark,
                        currentConditionsJSON: conditions,
