mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
Start testing Commit
This commit is contained in:
parent
b4dac5a6be
commit
1f3868768f
@ -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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user