Skip to content

Commit 92ea417

Browse files
Mariangeles Cuevaskzaher
Mariangeles Cuevas
authored andcommitted
fix variable names
1 parent 910bd22 commit 92ea417

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Tests/RxCocoaTests/UITextField+RxTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class UITextFieldTests : RxTest {
2424
func testSettingTextDoesntClearMarkedText() {
2525
let textField = UITextFieldSubclass(frame: CGRect.zero)
2626
textField.text = "Text1"
27-
textField.isSettedText = false
27+
textField.didSetText = false
2828
textField.rx.text.on(.next("Text1"))
2929
XCTAssertTrue(!textField.isSettedText)
3030
textField.rx.text.on(.next("Text2"))
@@ -49,14 +49,14 @@ private extension String {
4949
}
5050

5151
final class UITextFieldSubclass : UITextField {
52-
var isSettedText = false
52+
var didSetText = false
5353

5454
override var text: String? {
5555
get {
5656
return super.text
5757
}
5858
set {
59-
isSettedText = true
59+
didSetText = true
6060
super.text = newValue
6161
}
6262
}

Tests/RxCocoaTests/UITextView+RxTests.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ final class UITextViewTests : RxTest {
2727
let textView = UITextViewSubclass2(frame: CGRect.zero)
2828

2929
textView.text = "Text1"
30-
textView.isSettedText = false
30+
textView.didSetText = false
3131
textView.rx.text.on(.next("Text1"))
32-
XCTAssertTrue(!textView.isSettedText)
32+
XCTAssertTrue(!textView.didSetText)
3333
textView.rx.text.on(.next("Text2"))
34-
XCTAssertTrue(textView.isSettedText)
34+
XCTAssertTrue(textView.didSetText)
3535
}
3636

3737
func testSettingTextDoesntClearMarkedAttributtedText() {
@@ -41,13 +41,13 @@ final class UITextViewTests : RxTest {
4141
let test2AttributedString = "Test2".textViewAttributedString
4242

4343
textView.attributedText = testAttributedString
44-
textView.isSettedAttributedText = false
44+
textView.didSetAttributedText = false
4545
textView.rx.attributedText.on(.next(testAttributedString))
46-
XCTAssertTrue(!textView.isSettedAttributedText)
46+
XCTAssertTrue(!textView.didSetAttributedText)
4747
textView.rx.attributedText.on(.next(testAttributedString))
48-
XCTAssertTrue(!textView.isSettedAttributedText)
48+
XCTAssertTrue(!textView.didSetAttributedText)
4949
textView.rx.attributedText.on(.next(test2AttributedString))
50-
XCTAssertTrue(textView.isSettedAttributedText)
50+
XCTAssertTrue(textView.didSetAttributedText)
5151
}
5252

5353
func testDidBeginEditing() {
@@ -140,15 +140,15 @@ private extension String {
140140
}
141141

142142
final class UITextViewSubclass2 : UITextView {
143-
var isSettedText = false
144-
var isSettedAttributedText = false
143+
var didSetText = false
144+
var didSetAttributedText = false
145145

146146
override var text: String? {
147147
get {
148148
return super.text
149149
}
150150
set {
151-
isSettedText = true
151+
didSetText = true
152152
super.text = newValue
153153
}
154154
}
@@ -158,7 +158,7 @@ final class UITextViewSubclass2 : UITextView {
158158
return super.attributedText
159159
}
160160
set {
161-
isSettedAttributedText = true
161+
didSetAttributedText = true
162162
super.attributedText = newValue
163163
}
164164
}

0 commit comments

Comments
 (0)