Skip to content

Commit

Permalink
Small improvemets related to Realm and unit tests with Realm
Browse files Browse the repository at this point in the history
  • Loading branch information
dogo committed Sep 12, 2023
1 parent 46952fb commit e362d93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SWDestinyTrades/Classes/Database/RealmDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ final class RealmDatabase: DatabaseProtocol {
}
}

static func realHomeDirectory() -> String {
private static func realHomeDirectory() -> String {
let homeDirectory = NSHomeDirectory()
let pathComponents = homeDirectory.components(separatedBy: "/")
return "/\(pathComponents[1])/\(pathComponents[2])"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class PeopleListViewControllerTests: QuickSpec {
context("when it's initialized from the tabbar") {

beforeEach {
try! database = RealmDatabase(configuration: .inMemory(identifier: "PeopleListViewControllerTests"))
database = RealmDatabaseHelper.createMemoryDatabase(identifier: "PeopleList")
}

afterEach {
Expand Down

0 comments on commit e362d93

Please sign in to comment.