ios_tests/lib/ios/specs/common/patch.rb in appium_lib-6.0.0 vs ios_tests/lib/ios/specs/common/patch.rb in appium_lib-7.0.0

- old
+ new

@@ -1,24 +1,28 @@ -=begin - Skip: - status # status patches are already tested in driver.rb - raw_execute # debug output for Pry -=end +# rubocop:disable Lint/RescueException +# rubocop:disable Metrics/LineLength + +# +# Skip: +# status # status patches are already tested in driver.rb +# raw_execute # debug output for Pry +# + # rake ios[common/patch] describe 'common/patch.rb' do def before_first screen.must_equal catalog end t 'before_first' do before_first end -# Attributes are busted in Android. -# Blocked on https://github.com/appium/appium/issues/628 + # Attributes are busted in Android. + # Blocked on https://github.com/appium/appium/issues/628 describe 'Selenium::WebDriver::Element methods' do - # todo: t 'value' do; end + # TODO: t 'value' do; end t 'name' do first_text.name.must_equal 'UICatalog' end @@ -37,14 +41,14 @@ t 'error_message' do value = '' begin set_wait 0 find_element(:css, 'ok') - rescue Exception => e; + rescue Exception => e value = e.message ensure set_wait end - value.must_equal "Invalid locator strategy: css selector" + value.must_equal 'Invalid locator strategy: css selector' end end -end \ No newline at end of file +end