File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 13
13
expect_build_number ( xcconfig_mock_content : xcconfig_mock_content , expected_build_number : '1940' )
14
14
end
15
15
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
17
17
xcconfig_mock_content = <<~CONTENT
18
18
VERSION_SHORT = 6
19
19
VERSION_LONG = 6.30.1
20
20
BUILD_NUMBER = 1940
21
21
CONTENT
22
22
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' )
24
24
end
25
25
26
26
it 'parses an xcconfig file with an invalid format and returns a nil build number' do
47
47
run_described_fastlane_action (
48
48
xcconfig_file_path : 'file/not/found'
49
49
)
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 )
52
51
end
53
52
54
53
def expect_build_number ( xcconfig_mock_content :, expected_build_number :)
You can’t perform that action at this time.
0 commit comments