Last active
October 26, 2017 15:01
-
-
Save soxjke/754aba240865afb5f40991daf11f9ae2 to your computer and use it in GitHub Desktop.
WeatherSpec - Step1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import Quick | |
import Nimble | |
@testable import Simple_Weather_App | |
class WeatherSpec: QuickSpec { | |
override func spec() { | |
let weatherJSON: [String: Any] = try! JSONSerialization.jsonObject(with: try! Data.init(contentsOf: Bundle.test.url(forResource: "Weather", withExtension: "json")!)) as! [String: Any] | |
describe("parsing") { | |
it("should parse weather") { | |
let weather = try? Weather(JSON: weatherJSON) | |
expect(weather).notTo(beNil()) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment