@@ -15,7 +15,7 @@ def run_with args
1515
1616 context 'building an iOS project' do
1717 it 'detects default Info.plist file excluding test dirs' do
18- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789AAA --version-name 2.0-other --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git " ) . and_return ( true )
18+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789AAA --version-name 2.0-other --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload" ) . and_return ( true )
1919 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj' ) ) do
2020 run_with ( { } )
2121 end
@@ -24,7 +24,7 @@ def run_with args
2424 it 'reads api key from legacy location' do
2525 # the API key is now in `bugsnag.apiKey`, it used to be in 'BugsnagAPIKey',
2626 # test this can be extracted correctly from the `ios_proj_legacy`
27- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789BBB --version-name 4.0-project --bundle-version 44 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git " ) . and_return ( true )
27+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789BBB --version-name 4.0-project --bundle-version 44 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload" ) . and_return ( true )
2828 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj_legacy' ) ) do
2929 run_with ( { } )
3030 end
@@ -33,7 +33,7 @@ def run_with args
3333 context 'using default config_file option' do
3434 context 'override API key from config' do
3535 it 'reads API key from the api_key option' do
36- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789FFF --version-name 2.0-other --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git " ) . and_return ( true )
36+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789FFF --version-name 2.0-other --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload" ) . and_return ( true )
3737 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj' ) ) do
3838 run_with ( {
3939 api_key : '12345678901234567890123456789FFF'
@@ -42,7 +42,7 @@ def run_with args
4242 end
4343
4444 it 'uses input versions from options' do
45- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789AAA --version-name 8.0.0 --bundle-version 800 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git " ) . and_return ( true )
45+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789AAA --version-name 8.0.0 --bundle-version 800 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload" ) . and_return ( true )
4646 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj' ) ) do
4747 run_with ( {
4848 app_version : '8.0.0' ,
@@ -55,7 +55,7 @@ def run_with args
5555
5656 context 'override config_file option' do
5757 it 'reads API key and version info from the config file' do
58- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 3.0-project --bundle-version 33 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git " ) . and_return ( true )
58+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 3.0-project --bundle-version 33 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload" ) . and_return ( true )
5959 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj' ) ) do
6060 run_with ( {
6161 config_file : File . join ( 'Project' , 'Info.plist' )
@@ -65,7 +65,7 @@ def run_with args
6565
6666 context 'override API key, and config file' do
6767 it 'uses the input api_key to override a non default config' do
68- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789EEE --version-name 3.0-project --bundle-version 33 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git " ) . and_return ( true )
68+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789EEE --version-name 3.0-project --bundle-version 33 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload" ) . and_return ( true )
6969 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj' ) ) do
7070 run_with ( {
7171 config_file : File . join ( 'Project' , 'Info.plist' ) ,
@@ -75,7 +75,7 @@ def run_with args
7575 end
7676
7777 it 'uses the input versions to override a non default config' do
78- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 9.0.0 --bundle-version 900 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git " ) . and_return ( true )
78+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 9.0.0 --bundle-version 900 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload" ) . and_return ( true )
7979 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj' ) ) do
8080 run_with ( {
8181 config_file : File . join ( 'Project' , 'Info.plist' ) ,
@@ -89,7 +89,7 @@ def run_with args
8989
9090 context 'metadata added to args' do
9191 it "single key:value pair added" do
92- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 4.0-project --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git --metadata \" test1\" : \" First test\" " ) . and_return ( true )
92+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 4.0-project --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload --metadata \" test1\" : \" First test\" " ) . and_return ( true )
9393 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj' ) ) do
9494 run_with ( {
9595 app_version : '4.0-project' ,
@@ -100,7 +100,7 @@ def run_with args
100100 end
101101
102102 it "multiple key:value pairs added" do
103- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 4.0-project --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git --metadata \" test1\" : \" First test\" , \" test2\" : \" Second test\" , \" test3\" : \" Third test\" " ) . and_return ( true )
103+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 4.0-project --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload --metadata \" test1\" : \" First test\" , \" test2\" : \" Second test\" , \" test3\" : \" Third test\" " ) . and_return ( true )
104104 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj' ) ) do
105105 run_with ( {
106106 app_version : '4.0-project' ,
@@ -111,7 +111,7 @@ def run_with args
111111 end
112112
113113 it "multiple key:value pairs added as a hash" do
114- expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 4.0-project --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository git@ github.com: bugsnag/bugsnag-dsym-upload.git --metadata \" custom_field_1\" =\" value1\" , \" custom_field_2\" =\" value2\" " ) . and_return ( true )
114+ expect ( Kernel ) . to receive ( :system ) . with ( "#{ BUGSNAG_CLI_PATH } create-build --api-key 12345678901234567890123456789DDD --version-name 4.0-project --bundle-version 22 --builder-name josh.edney --revision 3a30a510ba898341ff8631da49dc7021fb28c40e --repository https:// github.com/ bugsnag/bugsnag-dsym-upload --metadata \" custom_field_1\" =\" value1\" , \" custom_field_2\" =\" value2\" " ) . and_return ( true )
115115 Dir . chdir ( File . join ( FIXTURE_PATH , 'ios_proj' ) ) do
116116 run_with ( {
117117 app_version : '4.0-project' ,
0 commit comments