ios_tests/lib/ios/specs/ios/element/text.rb in appium_lib-6.0.0 vs ios_tests/lib/ios/specs/ios/element/text.rb in appium_lib-7.0.0
- old
+ new
@@ -1,5 +1,7 @@
+# rubocop:disable Lint/HandleExceptions
+
# rake ios['ios/element/text']
describe 'ios/element/text' do
def ui_catalog
'UICatalog'
end
@@ -32,19 +34,20 @@
end
t 'texts' do
exp = ['Controls', 'Various uses of UIControl', 'Various uses of UISegmentedControl']
texts.length.must_equal 24
- texts('trol').map { |e| e.name }.must_equal exp
+ texts('trol').map(&:name).must_equal exp
texts('uses').length.must_equal 7
end
t 'text_exact' do
# should fail
set_wait 0
act = begin
text_exact 'mos'
rescue
+ # nop
end
act.must_be_nil
set_wait
# should pass