android_tests/lib/android/specs/android/helper.rb in appium_lib-6.0.0 vs android_tests/lib/android/specs/android/helper.rb in appium_lib-7.0.0

- old
+ new

@@ -1,5 +1,7 @@ +# rubocop:disable Metrics/LineLength + # rake android[android/helper] describe 'android/helper' do t 'tags' do wait { tags('android.widget.TextView').length.must_equal 13 } end @@ -82,22 +84,22 @@ '.ApiDemos'], # api 19 ['mFocusedApp=AppWindowToken{b40af858 token=Token{b3e2ce38 ActivityRecord{b3eb47d8 u0 io.appium.android.apis/.ApiDemos t6}}}', 'io.appium.android.apis', '.ApiDemos' - # api 16 selendroid ], + # api 16 selendroid ['mFocusedApp=AppWindowToken{4157a2c8 token=Token{41582628 ActivityRecord{415821f0 com.android.launcher/com.android.launcher2.Launcher}}}', 'com.android.launcher', 'com.android.launcher2.Launcher' ] ] expected.each do |line, package, activity| parsed = _parse_current_app_line(line) - raise "failed to parse #{line}" if parsed.nil? + fail "failed to parse #{line}" if parsed.nil? parsed.package.must_equal package parsed.activity.must_equal activity parsed.am_start.must_equal package + '/' + activity end end -end \ No newline at end of file +end