We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 645c93e commit 92900aeCopy full SHA for 92900ae
ReactiveTaskTests/TaskSpec.swift
@@ -15,6 +15,20 @@ import Result
15
16
class TaskSpec: QuickSpec {
17
override func spec() {
18
+ it("should notify that a task was launched") {
19
+ var isLaunched: Bool = false
20
+
21
+ _ = launchTask(Task("/usr/bin/true"))
22
+ .on(next: { event in
23
+ if case .Launch = event {
24
+ isLaunched = true
25
+ }
26
+ })
27
+ .wait()
28
29
+ expect(isLaunched) == true
30
31
32
it("should launch a task that writes to stdout") {
33
let result = launchTask(Task("/bin/echo", arguments: [ "foobar" ]))
34
.reduce(NSMutableData()) { aggregated, event in
0 commit comments