@@ -150,8 +150,16 @@ def test_react_native_pods
150
150
with_resources
151
151
with_platform_resources
152
152
] . each do |fixture |
153
- assert_equal ( '.' , resources_pod ( fixture_path ( fixture ) , target , platforms ) )
154
- assert_equal ( '..' , resources_pod ( fixture_path ( fixture , target . to_s ) , target , platforms ) )
153
+ podspec_path = resources_pod ( fixture_path ( fixture ) , target , platforms )
154
+ inner_podspec_path = resources_pod ( fixture_path ( fixture , target . to_s ) , target , platforms )
155
+
156
+ if fixture . to_s . include? ( 'without' )
157
+ assert_nil ( podspec_path )
158
+ assert_nil ( inner_podspec_path )
159
+ else
160
+ assert_equal ( '.' , podspec_path )
161
+ assert_equal ( '..' , inner_podspec_path )
162
+ end
155
163
end
156
164
end
157
165
@@ -176,12 +184,16 @@ def test_react_native_pods
176
184
fixture_path ( 'without_resources' , target . to_s ) ,
177
185
] . each do |project_root |
178
186
podspec_path = resources_pod ( project_root , target , platforms )
187
+
188
+ if project_root . to_s . include? ( 'without' )
189
+ assert_nil ( podspec_path )
190
+ next
191
+ end
192
+
179
193
manifest_path = app_manifest_path ( project_root , podspec_path )
180
194
manifest = JSON . parse ( File . read ( manifest_path ) )
181
195
182
- if project_root . to_s . include? ( 'without' )
183
- assert_empty ( manifest [ 'resources' ] )
184
- elsif project_root . to_s . include? ( 'with_platform_resources' )
196
+ if project_root . to_s . include? ( 'with_platform_resources' )
185
197
assert_equal ( platform_resources , manifest [ 'resources' ] . sort )
186
198
else
187
199
assert_equal ( resources , manifest [ 'resources' ] . sort )
0 commit comments