Start testing Commit

This commit is contained in:
Matt Diephouse 2014-12-05 23:35:39 -05:00
parent b4dac5a6be
commit 1f3868768f

View File

@ -13,6 +13,15 @@ import Quick
class CommitSpec: QuickSpec {
override func spec() {
describe("init(pointer:)") {
it("should set its properties") {
let repo = Fixtures.simpleRepository
let oid = OID(string: "dc220a3f0c22920dab86d4a8d3a3cb7e69d6205a")!
let commit = repo.commitWithOID(oid).value()
expect(commit?.oid).to(equal(oid))
expect(commit?.message).to(equal("Create a README\n"))
}
}
}
}