Skip to content

Commit 6e02485

Browse files
committed
Fix unit tests
1 parent 5bcf405 commit 6e02485

File tree

3 files changed

+162
-6
lines changed

3 files changed

+162
-6
lines changed

Gemfile.lock

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.1)
5+
addressable (2.6.0)
6+
public_suffix (>= 2.0.2, < 4.0)
7+
atomos (0.1.3)
8+
babosa (1.0.2)
9+
claide (1.0.3)
10+
colored (1.2)
11+
colored2 (3.1.2)
12+
commander-fastlane (4.4.6)
13+
highline (~> 1.7.2)
14+
declarative (0.0.10)
15+
declarative-option (0.1.0)
16+
digest-crc (0.4.1)
17+
domain_name (0.5.20190701)
18+
unf (>= 0.0.5, < 1.0.0)
19+
dotenv (2.7.5)
20+
emoji_regex (1.0.1)
21+
excon (0.66.0)
22+
faraday (0.15.4)
23+
multipart-post (>= 1.2, < 3)
24+
faraday-cookie_jar (0.0.6)
25+
faraday (>= 0.7.4)
26+
http-cookie (~> 1.0.0)
27+
faraday_middleware (0.13.1)
28+
faraday (>= 0.7.4, < 1.0)
29+
fastimage (2.1.5)
30+
fastlane (2.129.0)
31+
CFPropertyList (>= 2.3, < 4.0.0)
32+
addressable (>= 2.3, < 3.0.0)
33+
babosa (>= 1.0.2, < 2.0.0)
34+
bundler (>= 1.12.0, < 3.0.0)
35+
colored
36+
commander-fastlane (>= 4.4.6, < 5.0.0)
37+
dotenv (>= 2.1.1, < 3.0.0)
38+
emoji_regex (>= 0.1, < 2.0)
39+
excon (>= 0.45.0, < 1.0.0)
40+
faraday (~> 0.9)
41+
faraday-cookie_jar (~> 0.0.6)
42+
faraday_middleware (~> 0.9)
43+
fastimage (>= 2.1.0, < 3.0.0)
44+
gh_inspector (>= 1.1.2, < 2.0.0)
45+
google-api-client (>= 0.21.2, < 0.24.0)
46+
google-cloud-storage (>= 1.15.0, < 2.0.0)
47+
highline (>= 1.7.2, < 2.0.0)
48+
json (< 3.0.0)
49+
jwt (~> 2.1.0)
50+
mini_magick (>= 4.9.4, < 5.0.0)
51+
multi_xml (~> 0.5)
52+
multipart-post (~> 2.0.0)
53+
plist (>= 3.1.0, < 4.0.0)
54+
public_suffix (~> 2.0.0)
55+
rubyzip (>= 1.2.2, < 2.0.0)
56+
security (= 0.1.3)
57+
simctl (~> 1.6.3)
58+
slack-notifier (>= 2.0.0, < 3.0.0)
59+
terminal-notifier (>= 2.0.0, < 3.0.0)
60+
terminal-table (>= 1.4.5, < 2.0.0)
61+
tty-screen (>= 0.6.3, < 1.0.0)
62+
tty-spinner (>= 0.8.0, < 1.0.0)
63+
word_wrap (~> 1.0.0)
64+
xcodeproj (>= 1.8.1, < 2.0.0)
65+
xcpretty (~> 0.3.0)
66+
xcpretty-travis-formatter (>= 0.0.3)
67+
gh_inspector (1.1.3)
68+
google-api-client (0.23.9)
69+
addressable (~> 2.5, >= 2.5.1)
70+
googleauth (>= 0.5, < 0.7.0)
71+
httpclient (>= 2.8.1, < 3.0)
72+
mime-types (~> 3.0)
73+
representable (~> 3.0)
74+
retriable (>= 2.0, < 4.0)
75+
signet (~> 0.9)
76+
google-cloud-core (1.3.1)
77+
google-cloud-env (~> 1.0)
78+
google-cloud-env (1.2.1)
79+
faraday (~> 0.11)
80+
google-cloud-storage (1.16.0)
81+
digest-crc (~> 0.4)
82+
google-api-client (~> 0.23)
83+
google-cloud-core (~> 1.2)
84+
googleauth (>= 0.6.2, < 0.10.0)
85+
googleauth (0.6.7)
86+
faraday (~> 0.12)
87+
jwt (>= 1.4, < 3.0)
88+
memoist (~> 0.16)
89+
multi_json (~> 1.11)
90+
os (>= 0.9, < 2.0)
91+
signet (~> 0.7)
92+
highline (1.7.10)
93+
http-cookie (1.0.3)
94+
domain_name (~> 0.5)
95+
httpclient (2.8.3)
96+
json (2.2.0)
97+
jwt (2.1.0)
98+
memoist (0.16.0)
99+
mime-types (3.2.2)
100+
mime-types-data (~> 3.2015)
101+
mime-types-data (3.2019.0331)
102+
mini_magick (4.9.5)
103+
multi_json (1.13.1)
104+
multi_xml (0.6.0)
105+
multipart-post (2.0.0)
106+
nanaimo (0.2.6)
107+
naturally (2.2.0)
108+
os (1.0.1)
109+
plist (3.5.0)
110+
public_suffix (2.0.5)
111+
representable (3.0.4)
112+
declarative (< 0.1.0)
113+
declarative-option (< 0.2.0)
114+
uber (< 0.2.0)
115+
retriable (3.1.2)
116+
rouge (2.0.7)
117+
rubyzip (1.2.3)
118+
security (0.1.3)
119+
signet (0.11.0)
120+
addressable (~> 2.3)
121+
faraday (~> 0.9)
122+
jwt (>= 1.5, < 3.0)
123+
multi_json (~> 1.10)
124+
simctl (1.6.5)
125+
CFPropertyList
126+
naturally
127+
slack-notifier (2.3.2)
128+
terminal-notifier (2.0.0)
129+
terminal-table (1.8.0)
130+
unicode-display_width (~> 1.1, >= 1.1.1)
131+
tty-cursor (0.7.0)
132+
tty-screen (0.7.0)
133+
tty-spinner (0.9.1)
134+
tty-cursor (~> 0.7)
135+
uber (0.1.0)
136+
unf (0.1.4)
137+
unf_ext
138+
unf_ext (0.0.7.6)
139+
unicode-display_width (1.6.0)
140+
word_wrap (1.0.0)
141+
xcodeproj (1.12.0)
142+
CFPropertyList (>= 2.3.3, < 4.0)
143+
atomos (~> 0.1.3)
144+
claide (>= 1.0.2, < 2.0)
145+
colored2 (~> 3.1)
146+
nanaimo (~> 0.2.6)
147+
xcpretty (0.3.0)
148+
rouge (~> 2.0.7)
149+
xcpretty-travis-formatter (1.0.0)
150+
xcpretty (~> 0.2, >= 0.0.7)
151+
152+
PLATFORMS
153+
ruby
154+
155+
DEPENDENCIES
156+
fastlane
157+
158+
BUNDLED WITH
159+
2.0.2

Tests/BaseTrackingTests/BaseTrackingTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ final class BaseTrackingTests: XCTestCase {
5555
}
5656

5757
func testTrackView() {
58-
_ = controller?.view
58+
controller?.viewDidLoad()
5959
XCTAssertEqual(manager?.mock.trackViewData?.name, "screen name to send")
6060
}
6161

Tests/BaseTrackingTests/HomeController.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23-
import UIKit
23+
class HomeController {
2424

25-
class HomeController: UIViewController {
26-
27-
override func viewDidLoad() {
28-
super.viewDidLoad()
25+
func viewDidLoad() {
2926
HomeTrack.trackView(name: .home)
3027
}
3128

0 commit comments

Comments
 (0)