Skip to content

Commit f6638f3

Browse files
tomoyamatsuyamabobgodwinx
authored andcommitted
Syntax sugar to execute when Input is Void in iOS-Tests
1 parent 9b1bc3f commit f6638f3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Tests/iOS-Tests/AlertActionTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AlertActionTests: QuickSpec {
3434

3535
subject.rx.action = action
3636

37-
action.execute(())
37+
action.execute()
3838
expect(subject.isEnabled).toEventually( beFalse() )
3939

4040
observer.onCompleted()

Tests/iOS-Tests/BarButtonTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class BarButtonTests: QuickSpec {
3535

3636
subject.rx.action = action
3737

38-
action.execute(())
38+
action.execute()
3939
expect(subject.isEnabled).toEventually( beFalse() )
4040

4141
observer.onCompleted()

Tests/iOS-Tests/ButtonTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ButtonTests: QuickSpec {
3535

3636
subject.rx.action = action
3737

38-
action.execute(())
38+
action.execute()
3939
expect(subject.isEnabled).toEventually( beFalse() )
4040

4141
observer.onCompleted()
@@ -122,7 +122,7 @@ class ButtonTests: QuickSpec {
122122
}
123123

124124
subject.rx.action = action
125-
subject.rx.action?.execute(())
125+
subject.rx.action?.execute()
126126
}
127127
}
128128

Tests/iOS-Tests/RefreshControlTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class RefreshControlTests: QuickSpec {
3535

3636
subject.rx.action = action
3737

38-
action.execute(())
38+
action.execute()
3939
expect(subject.isEnabled).toEventually( beFalse() )
4040

4141
observer.onCompleted()

0 commit comments

Comments
 (0)