mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
Fix up indentation
This commit is contained in:
parent
a734acce7a
commit
6e4f7358de
@ -276,24 +276,24 @@ class RepositorySpec: QuickSpec {
|
||||
|
||||
it("should return all the remotes") {
|
||||
let repo = Fixtures.mantleRepository
|
||||
let remotes = repo.allRemotes().value()
|
||||
let names = remotes?.map { $0.name }
|
||||
expect(remotes?.count).to(equal(2))
|
||||
expect(names).to(contain("origin", "upstream"))
|
||||
let remotes = repo.allRemotes().value()
|
||||
let names = remotes?.map { $0.name }
|
||||
expect(remotes?.count).to(equal(2))
|
||||
expect(names).to(contain("origin", "upstream"))
|
||||
}
|
||||
}
|
||||
|
||||
describe("-remoteWithName()") {
|
||||
it("should return the remote if it exists") {
|
||||
let repo = Fixtures.mantleRepository
|
||||
let result = repo.remoteWithName("upstream")
|
||||
expect(result.value()?.name).to(equal("upstream"))
|
||||
let result = repo.remoteWithName("upstream")
|
||||
expect(result.value()?.name).to(equal("upstream"))
|
||||
}
|
||||
|
||||
it("should error if the remote doesn't exist") {
|
||||
let repo = Fixtures.simpleRepository
|
||||
let result = repo.remoteWithName("nonexistent")
|
||||
expect(result.error()).notTo(beNil())
|
||||
let result = repo.remoteWithName("nonexistent")
|
||||
expect(result.error()).notTo(beNil())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user