Skip to content

Commit

Permalink
Updated specs to latest Quick and Nimble versions
Browse files Browse the repository at this point in the history
  • Loading branch information
brototyp committed Sep 6, 2024
1 parent b3468f3 commit 31f1384
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MatomoTrackerTests/UserDefaultsQueueSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import Quick
import Nimble

class UserDefaultsQueueSpec: QuickSpec {
override func setUp() {
Nimble.AsyncDefaults.timeout = .seconds(10)
Nimble.AsyncDefaults.pollInterval = .milliseconds(100)
override class func setUp() {
Nimble.PollingDefaults.timeout = .seconds(10)
Nimble.PollingDefaults.pollInterval = .milliseconds(100)
}

override func spec() {
override class func spec() {
let userDefaults = UserDefaults(suiteName: "UserDefaultsQueueSpec")!
afterEach {
self.removeAllInSuite(suite: "UserDefaultsQueueSpec")
Expand Down Expand Up @@ -157,7 +157,7 @@ class UserDefaultsQueueSpec: QuickSpec {
}
}
}
private func removeAllInSuite(suite: String) {
private class func removeAllInSuite(suite: String) {
guard let newuserDefaults = UserDefaults(suiteName: suite) else { return }
let allKeys: [String]? = Array(newuserDefaults.dictionaryRepresentation().keys)
for key in allKeys ?? [] {
Expand Down

0 comments on commit 31f1384

Please sign in to comment.