Skip to content

Commit

Permalink
[LOCAL] fix definition of local mock for ruby test
Browse files Browse the repository at this point in the history
  • Loading branch information
kelset committed Apr 3, 2023
1 parent 0010c38 commit 509f8f2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/cocoapods/__tests__/codegen_utils-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
require_relative "./test_utils/CodegenScriptPhaseExtractorMock.rb"
require_relative "./test_utils/FileUtilsMock.rb"

# mocking the min_ios_version_supported function
# as it is not possible to require the original react_native_pod
# without incurring in circular deps
# TODO: move `min_ios_version_supported` to utils.rb
def min_ios_version_supported
return '12.4'
end

class CodegenUtilsTests < Test::Unit::TestCase
:base_path

Expand Down Expand Up @@ -486,14 +494,6 @@ def test_assertCodegenFolderIsEmpty_whenItIsNotEmpty_itAborts

private

# mocking the min_ios_version_supported function
# as it is not possible to require the original react_native_pod
# without incurring in circular deps
# TODO: move `min_ios_version_supported` to utils.rb
def min_ios_version_supported
return '12.4'
end

def get_podspec_no_fabric_no_script
spec = {
'name' => "React-Codegen",
Expand Down

0 comments on commit 509f8f2

Please sign in to comment.