Skip to content

Commit 3118828

Browse files
committed
Reactive array spec: Fix insertion test case to take and expect on 2
counts; one for the insertion itself and another for the append
1 parent 67becdb commit 3118828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReactiveArrayTests/ReactiveArraySpec.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,10 @@ class ReactiveArraySpec: QuickSpec {
432432
it("updates the count") {
433433
waitUntil { done in
434434
producer
435-
.take(1)
435+
.take(2)
436436
.collect()
437437
.startWithNext { counts in
438-
expect(counts).to(equal([countBeforeOperation + 2]))
438+
expect(counts).to(equal([countBeforeOperation + 1, countBeforeOperation + 2]))
439439
done()
440440
}
441441

0 commit comments

Comments
 (0)