File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,12 @@ PODS:
6666 - OCHamcrest (7.0.1)
6767 - OCMockito (5.0.0):
6868 - OCHamcrest (~> 7.0)
69- - Segment-Firebase (2.4.1 ):
69+ - Segment-Firebase (2.6.0 ):
7070 - Analytics (~> 3.2)
7171 - Firebase/Core (~> 6.2)
7272 - FirebaseAnalytics (~> 6.1)
73- - Segment-Firebase/Core (= 2.4.1 )
74- - Segment-Firebase/Core (2.4.1 ):
73+ - Segment-Firebase/Core (= 2.6.0 )
74+ - Segment-Firebase/Core (2.6.0 ):
7575 - Analytics (~> 3.2)
7676 - Firebase/Core (~> 6.2)
7777 - FirebaseAnalytics (~> 6.1)
@@ -84,7 +84,7 @@ DEPENDENCIES:
8484 - Specta
8585
8686SPEC REPOS:
87- https://github.com/cocoapods/specs .git:
87+ https://github.com/CocoaPods/Specs .git:
8888 - Analytics
8989 - Expecta
9090 - Firebase
@@ -122,9 +122,9 @@ SPEC CHECKSUMS:
122122 nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48
123123 OCHamcrest: 7c2229e7ea96eecd6e43dbef7c68e1dfbd6928b8
124124 OCMockito: 2598f5d43f6e74964d3ec3b9dea8b4fde3ea2c43
125- Segment-Firebase: d882b05c4fa34513f1f950623d876bc6acc02740
125+ Segment-Firebase: 0eed2062280020a418957d991c8c12588fea5c14
126126 Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66
127127
128128PODFILE CHECKSUM: 256b940a1c5273be6ea8930b511feb0a3fb065f8
129129
130- COCOAPODS: 1.7.3
130+ COCOAPODS: 1.8.4
Original file line number Diff line number Diff line change 9393 @" Starship_Type" : @" Death Star"
9494 }];
9595 });
96+
97+ it (@" track with leading and trailing spacing for event name with dashes" , ^{
98+ SEGTrackPayload *payload = [[SEGTrackPayload alloc ] initWithEvent: @" Starship-Ordered "
99+ properties: @{
100+ @" Starship.Type" : @" Death Star"
101+ }
102+ context: @{}
103+ integrations: @{}];
104+
105+ [integration track: payload];
106+ [verify (mockFirebase) logEventWithName: @" Starship_Ordered" parameters: @{
107+ @" Starship_Type" : @" Death Star"
108+ }];
109+ });
96110
97111 it (@" track Order Completed" , ^{
98112 SEGTrackPayload *payload = [[SEGTrackPayload alloc ] initWithEvent: @" Order Completed" properties: @{
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ - (NSString *)formatFirebaseEventNames:(NSString *)event
117117 if ([periodSeparatedEvent count ] > 1 ) {
118118 return [trimmedEvent stringByReplacingOccurrencesOfString: @" ." withString: @" _" ];
119119 } else {
120- return [trimmedEvent stringByReplacingOccurrencesOfString: @" " withString: @" _" ];
120+ return [[ trimmedEvent stringByReplacingOccurrencesOfString: @" " withString: @" _ " ] stringByReplacingOccurrencesOfString: @" - " withString: @" _" ];
121121 }
122122 } else {
123123 return event;
You can’t perform that action at this time.
0 commit comments