File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 expect_build_number ( xcconfig_mock_content : xcconfig_mock_content , expected_build_number : '1940' )
1414 end
1515
16- it 'parses an xcconfig file with keys with spaces and returns a nil build number' do
16+ it 'parses an xcconfig file with keys with spaces and returns the correct build number' do
1717 xcconfig_mock_content = <<~CONTENT
1818 VERSION_SHORT = 6
1919 VERSION_LONG = 6.30.1
2020 BUILD_NUMBER = 1940
2121 CONTENT
2222
23- expect_build_number ( xcconfig_mock_content : xcconfig_mock_content , expected_build_number : nil )
23+ expect_build_number ( xcconfig_mock_content : xcconfig_mock_content , expected_build_number : '1940' )
2424 end
2525
2626 it 'parses an xcconfig file with an invalid format and returns a nil build number' do
4747 run_described_fastlane_action (
4848 xcconfig_file_path : 'file/not/found'
4949 )
50- # Ruby error for 'No such file or directory': https://ruby-doc.org/core-2.7.4/SystemCallError.html
51- end . to raise_error ( Errno ::ENOENT )
50+ end . to raise_error ( FastlaneCore ::Interface ::FastlaneError )
5251 end
5352
5453 def expect_build_number ( xcconfig_mock_content :, expected_build_number :)
You can’t perform that action at this time.
0 commit comments