Skip to content

Commit 509f8f2

Browse files
committed
[LOCAL] fix definition of local mock for ruby test
1 parent 0010c38 commit 509f8f2

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

scripts/cocoapods/__tests__/codegen_utils-test.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
require_relative "./test_utils/CodegenScriptPhaseExtractorMock.rb"
1616
require_relative "./test_utils/FileUtilsMock.rb"
1717

18+
# mocking the min_ios_version_supported function
19+
# as it is not possible to require the original react_native_pod
20+
# without incurring in circular deps
21+
# TODO: move `min_ios_version_supported` to utils.rb
22+
def min_ios_version_supported
23+
return '12.4'
24+
end
25+
1826
class CodegenUtilsTests < Test::Unit::TestCase
1927
:base_path
2028

@@ -486,14 +494,6 @@ def test_assertCodegenFolderIsEmpty_whenItIsNotEmpty_itAborts
486494

487495
private
488496

489-
# mocking the min_ios_version_supported function
490-
# as it is not possible to require the original react_native_pod
491-
# without incurring in circular deps
492-
# TODO: move `min_ios_version_supported` to utils.rb
493-
def min_ios_version_supported
494-
return '12.4'
495-
end
496-
497497
def get_podspec_no_fabric_no_script
498498
spec = {
499499
'name' => "React-Codegen",

0 commit comments

Comments
 (0)