Skip to content

Commit 8a35c6e

Browse files
committed
fix test helper
1 parent 9f1e6c3 commit 8a35c6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_helper.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def ios
115115
}
116116

117117
if ENV['BUNDLE_ID'].nil?
118-
cap[:caps][:bundleId] = ENV['BUNDLE_ID'] || 'io.appium.apple-samplecode.UICatalog'
119-
else
120118
cap[:caps][:app] = 'test/functional/app/UICatalog.app.zip'
119+
else
120+
cap[:caps][:bundleId] = ENV['BUNDLE_ID'] || 'io.appium.apple-samplecode.UICatalog'
121121
end
122122

123-
if ENV['UNIT_TEST'].nil?
123+
unless ENV['UNIT_TEST'].nil?
124124
xcode_org_id = ENV['ORG_ID'] || 'Simulator'
125125
cap = add_ios_real_device(cap.dup, xcode_org_id) if real_device
126126
cap = add_xctestrun(real_device, cap.dup, xcode_org_id)

0 commit comments

Comments
 (0)